freebsd-ports/databases/postgresql-plruby/Makefile

69 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: PL/Ruby
# Date created: 28 June 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= plruby
2003-11-12 07:06:24 +01:00
PORTVERSION= 0.3.8
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= postgresql-
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
2003-02-18 05:37:40 +01:00
COMMENT= PL/Ruby procedural language for the PostgreSQL database system
2003-01-18 23:43:00 +01:00
LIB_DEPENDS= pq.3:${PGSQL_PORTDIR}
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
POSTGRESQL_PORT?= databases/postgresql7
PGSQL_VERSION?= 73
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
PGSQL_WRKSRC_CMD= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
CONFIGURE_ARGS= --with-pgsql-version="${PGSQL_VERSION}" \
2003-10-15 00:31:23 +02:00
--with-pgsql-srcinc="`${PGSQL_WRKSRC_CMD}`/src/include" \
--with-pgsql-include-dir="${LOCALBASE}/include" \
--with-pgsql-lib="${LOCALBASE}/lib"
2003-01-30 17:58:06 +01:00
#CONFIGURE_ARGS+= --with-safe-level=0
#CONFIGURE_ARGS+= --with-main-safe-level=0
#CONFIGURE_ARGS+= --with-timeout=30
INSTALL_TARGET= site-install
2002-06-15 19:30:02 +02:00
DOCS= Changes README.en plruby.html plruby.rd
PKGMESSAGE= ${WRKDIR}/createlang.sql
2003-02-09 09:03:59 +01:00
post-extract:
${FIND} ${WRKSRC} -name '*~' -delete
post-patch:
${RUBY} -i -pe 'gsub /test_mklang\.sql/, "../createlang.sql"' \
${WRKSRC}/test/*/runtest
pre-configure:
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch
post-build:
${SED} 's,!!PLRUBY_SO!!,${RUBY_SITEARCHLIBDIR}/plruby.so,' \
${FILESDIR}/createlang.sql > ${WRKDIR}/createlang.sql
post-install:
.if !defined(NOPORTDOCS)
2002-10-06 23:08:30 +02:00
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
${CP} -R ${WRKSRC}/test/* ${RUBY_MODEXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
2002-10-06 23:08:30 +02:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>