mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
77 lines
2.2 KiB
Makefile
77 lines
2.2 KiB
Makefile
# New ports collection makefile for: PL/Ruby
|
|
# Date created: 28 June 2001
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= plruby
|
|
PORTVERSION= 0.5.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= RF/${PORTNAME} \
|
|
ftp://ftp.iDaemons.org/pub/distfiles/
|
|
PKGNAMEPREFIX= postgresql-
|
|
DIST_SUBDIR= ruby
|
|
|
|
PATCHFILES= df2c4d39cdda35e1cb842106b22aaa10df2760e6.diff
|
|
PATCH_SITES= http://github.com/knu/postgresql-plruby/commit/
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= PL/Ruby procedural language for the PostgreSQL database system
|
|
|
|
BUILD_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
|
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
|
|
|
USE_BZIP2= yes
|
|
USE_PGSQL= yes
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
USE_RUBY_RDOC= yes
|
|
|
|
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server
|
|
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
|
|
PGSQL_WRKSRC_CMD= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
|
|
|
|
CONFIGURE_ARGS= --with-pg-config="${LOCALBASE}/bin/pg_config" \
|
|
--with-pgsql-srcinc="`${PGSQL_WRKSRC_CMD}`/src/include"
|
|
#CONFIGURE_ARGS+= --with-safe-level=0
|
|
#CONFIGURE_ARGS+= --with-main-safe-level=0
|
|
#CONFIGURE_ARGS+= --with-timeout=30
|
|
INSTALL_TARGET= site-install
|
|
|
|
DOCS= Changes README.en plruby.html plruby.rd docs/doc
|
|
|
|
PKGMESSAGE= ${WRKDIR}/createlang.sql
|
|
|
|
pre-configure:
|
|
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch
|
|
|
|
post-build:
|
|
${SED} 's,!!PLRUBY_SO!!,${RUBY_SITEARCHLIBDIR}/plruby.so,' \
|
|
${FILESDIR}/createlang.sql > ${WRKDIR}/createlang.sql
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
|
|
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${RUBY_MODEXAMPLESDIR}/
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} ${DOCS} ${RUBY_MODDOCDIR}/)
|
|
|
|
@${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
|
|
's,^${PREFIX}/?,,' >> ${TMPPLIST}
|
|
@${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \
|
|
's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby18/ 2>/dev/null || true" \
|
|
>> ${TMPPLIST}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|