freebsd-ports/databases/postgresql-plruby/Makefile
Mathieu Arnold c6457ffef4 Update ports in the [bcd]* categories to not use GH_COMMIT.
With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
2015-05-06 15:16:53 +00:00

68 lines
1.9 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= postgresql-plruby
PORTVERSION= 0.5.4
PORTREVISION= 2
CATEGORIES= databases ruby
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= PL/Ruby procedural language for the PostgreSQL database system
USE_GITHUB= yes
GH_ACCOUNT= CraigCottingham
GH_TAGNAME= f8d9ced
USES+= uidfix tar:bzip2 pgsql
WANT_PGSQL= server
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDOC= yes
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER_NODOT}-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 plruby.html plruby.rd
OPTIONS_DEFINE= DOCS
PKGMESSAGE= ${WRKDIR}/createlang.sql
.include <bsd.port.options.mk>
post-fetch:
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch
post-build:
${SED} 's,!!PLRUBY_SO!!,${RUBY_SITEARCHLIBDIR}/plruby.so,' \
${FILESDIR}/createlang.sql > ${WRKDIR}/createlang.sql
.if ${PORT_OPTIONS:MDOCS}
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
.endif
post-install:
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs/doc ${STAGEDIR}${RUBY_MODDOCDIR}/ README.markdown && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${RUBY_MODDOCDIR}/
${FIND} -ds ${STAGEDIR}${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
.endif
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 2.2
BROKEN= Does not build
.endif
.include <bsd.port.post.mk>