forked from Lainports/freebsd-ports
Overall changes:
Use tabs instead of sequential spaces.
Note Author as well as WWW in DESCR.
Do not install examples when NOPORTDOCS.
Make RUBY, RUBY_VER and RUBY_ARCH variables overridable.
ruby-date2:
share/doc/ruby/date2/examples/ -> share/examples/ruby/date2/cal.rb
textproc/ruby-html-parser:
databases/ruby-mysql:
devel/ruby-optparse:
devel/ruby-property:
Install modules under lib/ruby/site_ruby/${RUBY_VER}/ instead
of lib/ruby/site_ruby/ or lib/ruby/${RUBY_VER}/
textproc/ruby-rdtool:
Install documents in .rd format too.
Format optparse's rd file. (Since ruby-rdtool depends on
optparse, it cannot be done during optparse's build
process. So ruby-rdtool should take care of that when it is
installed. :)
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# New ports collection makefile for: ruby-postgres
|
|
# Date created: 19 April 1999
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= postgres
|
|
PORTVERSION= 0.6.1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://webclub.kcom.ne.jp/mb/noborus/archive/
|
|
PKGNAMEPREFIX= ruby-
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
CONFIGURE_ARGS+= --with-pgsql-include-dir="${PGDIR}/include" \
|
|
--with-pgsql-lib-dir="${PGDIR}/lib"
|
|
PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
RUBY?= ${PREFIX}/bin/ruby
|
|
RUBY_VER?= 1.4
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
|
|
PGDIR?= ${PREFIX}/pgsql
|
|
|
|
DOCS_EN= ChangeLog README doc/postgres.html
|
|
DOCS_JA= README.jp doc/postgres.jp.html
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/postgres
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${PREFIX}/share/examples/ruby/postgres/
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/postgres/ja
|
|
.for f in ${DOCS_EN}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/postgres/
|
|
.endfor
|
|
.for f in ${DOCS_JA}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/postgres/ja/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|