[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / ruby-eruby

File: [cvs.NetBSD.org] / pkgsrc / textproc / ruby-eruby / Attic / Makefile (download)

Revision 1.18, Mon Dec 5 23:55:21 2005 UTC (17 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.17: +2 -2 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: Makefile,v 1.18 2005/12/05 23:55:21 rillig Exp $

DISTNAME=	eruby-${ERUBY_VERSION}
PKGNAME=	${RUBY_PKGPREFIX}-${DISTNAME}
PKGREVISION=	5
CATEGORIES=	textproc ruby
MASTER_SITES=	http://www.modruby.net/archive/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.modruby.net/
COMMENT=	Interprets Ruby code embedded in a text file

# manual page conflicts.
CONFLICTS+=	ruby[1-9][0-9]-eruby-*

RUBY_HAS_ARCHLIB=	yes
ERUBY_VERSION=		1.0.5
HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	${RUBY} configure.rb
CONFIGURE_ARGS+=	--enable-shared \
			--with-charset=${ERUBY_DEFAULT_CHARSET:Q}
INSTALL_TARGET=		site-install
PLIST_SUBST+=		ERUBY_MAJOR=${ERUBY_MAJOR:Q} \
			ERUBY_MINOR=${ERUBY_MINOR:Q} \
			ERUBY_TEENY=${ERUBY_TEENY:Q}

.include "../../mk/bsd.prefs.mk"

ERUBY_DEFAULT_CHARSET?=	ISO-8859-1
ERUBY_MAJOR=		${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
ERUBY_MINOR=		${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
ERUBY_TEENY=		${ERUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
MAN1=			eruby.1
DOCS=			ChangeLog README.en README.ja eruby.rd eruby.html
EXAMPLES=		e2r.rb foo.rhtml test.rb test.rhtml

post-build:
	cd ${WRKSRC}; ${RUBY_RD} eruby.rd > eruby.html

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/eruby
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/eruby
.endfor
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/eruby
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/eruby
.endfor

.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"