Lines 1-28
Link Here
|
1 |
# Created by: Akinori MUSHA aka knu <knu@idaemons.org> |
1 |
# Created by: Akinori MUSHA aka knu <knu@idaemons.org> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= plruby |
4 |
PORTNAME= postgresql-plruby |
5 |
PORTVERSION= 0.5.4 |
5 |
PORTVERSION= 0.5.4 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= databases ruby |
7 |
CATEGORIES= databases ruby |
8 |
MASTER_SITES= RF/${PORTNAME} \ |
|
|
9 |
ftp://ftp.iDaemons.org/pub/distfiles/ |
10 |
PKGNAMEPREFIX= postgresql- |
11 |
DIST_SUBDIR= ruby |
8 |
DIST_SUBDIR= ruby |
12 |
|
9 |
|
13 |
PATCHFILES= df2c4d39cdda35e1cb842106b22aaa10df2760e6.diff |
|
|
14 |
PATCH_SITES= http://github.com/knu/postgresql-plruby/commit/ |
15 |
PATCH_DIST_STRIP= -p1 |
16 |
|
17 |
MAINTAINER= knu@FreeBSD.org |
10 |
MAINTAINER= knu@FreeBSD.org |
18 |
COMMENT= PL/Ruby procedural language for the PostgreSQL database system |
11 |
COMMENT= PL/Ruby procedural language for the PostgreSQL database system |
19 |
|
12 |
|
|
|
13 |
USE_GITHUB= yes |
14 |
GH_ACCOUNT= CraigCottingham |
15 |
GH_TAGNAME= ${GH_COMMIT} |
16 |
GH_COMMIT= f8d9ced |
17 |
|
18 |
USES= uidfix |
20 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
21 |
USE_PGSQL= server |
20 |
USE_PGSQL= server |
22 |
WANT_PGSQL_VER= 84- |
|
|
23 |
USE_RUBY= yes |
21 |
USE_RUBY= yes |
24 |
USE_RUBY_EXTCONF= yes |
22 |
USE_RUBY_EXTCONF= yes |
25 |
USE_RUBY_RDOC= yes |
23 |
USE_RUBY_RDOC= yes |
|
|
24 |
NEED_ROOT= yes |
26 |
|
25 |
|
27 |
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server |
26 |
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server |
28 |
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT} |
27 |
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT} |
Lines 39-46
Link Here
|
39 |
|
38 |
|
40 |
PKGMESSAGE= ${WRKDIR}/createlang.sql |
39 |
PKGMESSAGE= ${WRKDIR}/createlang.sql |
41 |
|
40 |
|
42 |
NO_STAGE= yes |
41 |
post-fetch: |
43 |
pre-patch: |
|
|
44 |
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch |
42 |
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch |
45 |
|
43 |
|
46 |
post-build: |
44 |
post-build: |
Lines 53-70
Link Here
|
53 |
.include <bsd.port.pre.mk> |
51 |
.include <bsd.port.pre.mk> |
54 |
|
52 |
|
55 |
post-install: |
53 |
post-install: |
|
|
54 |
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ |
55 |
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ |
56 |
.if !defined(NOPORTDOCS) |
56 |
.if !defined(NOPORTDOCS) |
57 |
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ |
57 |
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} |
58 |
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${RUBY_MODEXAMPLESDIR}/ |
58 |
cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs/doc ${STAGEDIR}${RUBY_MODDOCDIR}/ README.markdown && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${RUBY_MODDOCDIR}/ |
59 |
${MKDIR} ${RUBY_MODDOCDIR} |
59 |
${FIND} -ds ${STAGEDIR}${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \ |
60 |
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs/doc ${RUBY_MODDOCDIR}/ README.en && ${INSTALL_DATA} ${DOCS} ${RUBY_MODDOCDIR}/) |
60 |
's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} |
61 |
@${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \ |
61 |
${FIND} -ds ${STAGEDIR}${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \ |
62 |
's,^${PREFIX}/?,,' >> ${TMPPLIST} |
62 |
's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} |
63 |
@${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \ |
63 |
${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby19/ 2>/dev/null || true" \ |
64 |
's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} |
|
|
65 |
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby19/ 2>/dev/null || true" \ |
66 |
>> ${TMPPLIST} |
64 |
>> ${TMPPLIST} |
67 |
.endif |
65 |
.endif |
68 |
@${CAT} ${PKGMESSAGE} |
|
|
69 |
|
66 |
|
70 |
.include <bsd.port.post.mk> |
67 |
.include <bsd.port.post.mk> |