fix DESTDIR breakage and other problems, from John Marino per PR pkg/45136, with minor fixes by me (PKGREV bumped)diff -r1.3 -r1.4 pkgsrc/www/aws/Makefile
(drochner)
@@ -1,46 +1,70 @@ | @@ -1,46 +1,70 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2011/03/23 15:41:55 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2011/07/19 19:56:37 drochner Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= aws-${AWS_VERSION} | 4 | DISTNAME= aws-${AWS_VERSION} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= www | 6 | CATEGORIES= www | |
6 | MASTER_SITES= http://downloads.dragonlace.net/src/ \ | 7 | MASTER_SITES= http://downloads.dragonlace.net/src/ \ | |
7 | http://dragonlace.mirrors.ada.cx/src/ | 8 | http://dragonlace.mirrors.ada.cx/src/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 9 | EXTRACT_SUFX= .tar.bz2 | |
9 | 10 | |||
10 | MAINTAINER= draco@marino.st | 11 | MAINTAINER= draco@marino.st | |
11 | HOMEPAGE= http://libre.adacore.com/libre/tools/aws/ | 12 | HOMEPAGE= http://libre.adacore.com/libre/tools/aws/ | |
12 | COMMENT= Adacore Ada Web Server and framework | 13 | COMMENT= Adacore Ada Web Server and framework | |
13 | LICENSE= gnu-gpl-v2 | 14 | LICENSE= gnu-gpl-v2 | |
14 | 15 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | AWS_VERSION= 2.10.0.1 | 17 | AWS_VERSION= 2.10.0.1 | |
17 | USE_TOOLS+= gmake makeinfo sed | 18 | USE_TOOLS+= gmake makeinfo sed gawk | |
18 | BUILD_DEPENDS+= gawk-[0-9]*:../../lang/gawk | 19 | ||
20 | PYTHON_VERSIONS_ACCEPTED= 26 27 | |||
19 | 21 | |||
20 | .include "options.mk" | 22 | .include "options.mk" | |
21 | 23 | |||
22 | MAKE_ENV+= ADA_PROJECT_PATH=${PREFIX}/lib/gnat | 24 | MAKE_ENV+= ADA_PROJECT_PATH=${PREFIX}/lib/gnat | |
23 | 25 | |||
26 | GENERATE_PLIST= cd ${DESTDIR}${PREFIX}; | |||
27 | GENERATE_PLIST+= ${FIND} bin/aws_password; | |||
28 | GENERATE_PLIST+= ${FIND} bin/awsres; | |||
29 | GENERATE_PLIST+= ${FIND} bin/templates2ada; | |||
30 | GENERATE_PLIST+= ${FIND} bin/templatespp; | |||
31 | GENERATE_PLIST+= ${FIND} bin/webxref; | |||
32 | GENERATE_PLIST+= ${FIND} bin/wsdl2aws; | |||
33 | GENERATE_PLIST+= ${FIND} include/aws/ -name \* -type f | ${SORT} -dr; | |||
34 | GENERATE_PLIST+= ${FIND} lib/aws/ -name \* -type f | ${SORT} -dr; | |||
35 | GENERATE_PLIST+= ${FIND} lib/gnat/aws/ -name \* -type f | ${SORT}; | |||
36 | GENERATE_PLIST+= ${FIND} lib/gnat/aws.gpr; | |||
37 | GENERATE_PLIST+= ${FIND} share/doc/aws/ -name \* -type f | ${SORT}; | |||
38 | GENERATE_PLIST+= ${FIND} share/examples/aws/ -name \* -type f | ${SORT} -dr; | |||
39 | GENERATE_PLIST+= ${FIND} share/gps/plug-ins/ada2wsdl.xml; | |||
40 | GENERATE_PLIST+= ${FIND} share/gps/plug-ins/aws.py; | |||
41 | GENERATE_PLIST+= ${FIND} share/gps/plug-ins/aws.xml; | |||
42 | GENERATE_PLIST+= ${FIND} share/gps/plug-ins/aws_api.xml; | |||
43 | GENERATE_PLIST+= ${FIND} share/gps/plug-ins/wsdl2aws.xml; | |||
44 | ||||
24 | post-wrapper: | 45 | post-wrapper: | |
25 | # We disable at least the wrapper binaries on all GNAT AUX to | 46 | # We disable at least the wrapper binaries on all GNAT AUX to | |
26 | # avoid potential linkage problems | 47 | # avoid potential linkage problems | |
27 | ${RM} ${WRKDIR}/.wrapper/bin/* | 48 | ${RM} ${WRKDIR}/.wrapper/bin/* | |
28 | 49 | |||
29 | do-configure: | 50 | do-configure: | |
30 | cd ${WRKSRC} && ${SETENV} CC=gnatgcc \ | 51 | cd ${WRKSRC} && ${SETENV} CC=gnatgcc \ | |
31 | ${GMAKE} setup ${CONFIGURE_ARGS} | 52 | ${GMAKE} setup ${CONFIGURE_ARGS} | |
32 | 53 | |||
33 | do-build: | 54 | do-build: | |
34 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} build build_doc | 55 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} build build_doc | |
35 | 56 | |||
36 | do-test: install | 57 | do-test: install | |
37 | cd ${WRKSRC}/regtests && python2.6 testsuite.py | 58 | cd ${WRKSRC}/regtests && python${PYVERSSUFFIX} testsuite.py | |
38 | 59 | |||
39 | do-install: | 60 | do-install: | |
40 | cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${GMAKE} install | 61 | cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${GMAKE} install | |
41 | ${TOUCH} ${DESTDIR}${PREFIX}/share/examples/aws/bin/IGNORE.ME | 62 | ${TOUCH} ${DESTDIR}${PREFIX}/share/examples/aws/bin/IGNORE.ME | |
42 | 63 | |||
43 | .include "../../devel/zlib/buildlink3.mk" | 64 | .include "../../devel/zlib/buildlink3.mk" | |
65 | .include "../../lang/python/pyversion.mk" | |||
44 | .include "../../devel/gnatpython/buildlink3.mk" | 66 | .include "../../devel/gnatpython/buildlink3.mk" | |
67 | .include "../../lang/gnat-aux/buildlink3.mk" | |||
68 | .include "../../textproc/xmlada/buildlink3.mk" | |||
45 | .include "../../devel/gprbuild-aux/buildlink3.mk" | 69 | .include "../../devel/gprbuild-aux/buildlink3.mk" | |
46 | .include "../../mk/bsd.pkg.mk" | 70 | .include "../../mk/bsd.pkg.mk" |
@@ -1,19 +1,21 @@ | @@ -1,19 +1,21 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2011/03/02 10:14:31 drochner Exp $ | 1 | $NetBSD: distinfo,v 1.3 2011/07/19 19:56:37 drochner Exp $ | |
2 | 2 | |||
3 | SHA1 (aws-2.10.0.1.tar.bz2) = 3ea20d4328951089f93caa3693eb24d67cf76594 | 3 | SHA1 (aws-2.10.0.1.tar.bz2) = 3ea20d4328951089f93caa3693eb24d67cf76594 | |
4 | RMD160 (aws-2.10.0.1.tar.bz2) = 8d6c2e9e681f18b16bbd79e76e6b65bb8f07a871 | 4 | RMD160 (aws-2.10.0.1.tar.bz2) = 8d6c2e9e681f18b16bbd79e76e6b65bb8f07a871 | |
5 | Size (aws-2.10.0.1.tar.bz2) = 1386481 bytes | 5 | Size (aws-2.10.0.1.tar.bz2) = 1386481 bytes | |
6 | SHA1 (patch-ac) = 1985aca4185538590cea3d939f095b69495eb0fa | 6 | SHA1 (patch-ac) = 1985aca4185538590cea3d939f095b69495eb0fa | |
7 | SHA1 (patch-ad) = 6bfa89f2837cc0dca4f5c391b7e05e74a3d85181 | 7 | SHA1 (patch-ad) = 6bfa89f2837cc0dca4f5c391b7e05e74a3d85181 | |
8 | SHA1 (patch-ae) = 44f66219a999b90d626f8f581942ae4f406e6c18 | 8 | SHA1 (patch-ae) = 44f66219a999b90d626f8f581942ae4f406e6c18 | |
9 | SHA1 (patch-af) = b3f6ca145cede4df4e101c9cd0fd255e2ad23d3f | |||
10 | SHA1 (patch-ag) = 5c5122daa913cc541fcd05d61f5b67a989a00b4d | |||
9 | SHA1 (patch-ba) = 334c40657793f0a6bcec295cc07329ca96bc8372 | 11 | SHA1 (patch-ba) = 334c40657793f0a6bcec295cc07329ca96bc8372 | |
10 | SHA1 (patch-bb) = e2db43dd317b01b9d0e97c481b2851b19469667b | 12 | SHA1 (patch-bb) = e2db43dd317b01b9d0e97c481b2851b19469667b | |
11 | SHA1 (patch-bc) = b4f9926351a0ab3c5e5c73601093266f0d8efaaa | 13 | SHA1 (patch-bc) = b4f9926351a0ab3c5e5c73601093266f0d8efaaa | |
12 | SHA1 (patch-bd) = b640a61fe75e9bfd06ea6a546ba827a71631517c | 14 | SHA1 (patch-bd) = b640a61fe75e9bfd06ea6a546ba827a71631517c | |
13 | SHA1 (patch-be) = c07e84b8f669e1aec7368a5be0fbcb91b37b32fe | 15 | SHA1 (patch-be) = c07e84b8f669e1aec7368a5be0fbcb91b37b32fe | |
14 | SHA1 (patch-bf) = 22fe61a2441649cf2bb2c9b6b22008562ca7127f | 16 | SHA1 (patch-bf) = 22fe61a2441649cf2bb2c9b6b22008562ca7127f | |
15 | SHA1 (patch-bg) = ebbba6439c4cdbeb2f0e1afaec9c46f429e408b9 | 17 | SHA1 (patch-bg) = ebbba6439c4cdbeb2f0e1afaec9c46f429e408b9 | |
16 | SHA1 (patch-bh) = 90275e1841639ca8068190a4b8604341a2b1b99c | 18 | SHA1 (patch-bh) = 59f370db7e47d5fb18fa239dfc3396703f7251c8 | |
17 | SHA1 (patch-bi) = 3878eb24a44a23f119d78aad5b0c5bcfce1fc4a2 | 19 | SHA1 (patch-bi) = 3878eb24a44a23f119d78aad5b0c5bcfce1fc4a2 | |
18 | SHA1 (patch-bj) = 6e138dbe344600ea870e33b030662422cadf6cbc | 20 | SHA1 (patch-bj) = 6e138dbe344600ea870e33b030662422cadf6cbc | |
19 | SHA1 (patch-bk) = 7be4ff0eefa89a24d942fc38c55f81864dd483de | 21 | SHA1 (patch-bk) = 7be4ff0eefa89a24d942fc38c55f81864dd483de |
@@ -1,34 +1,34 @@ | @@ -1,34 +1,34 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2011/03/02 10:14:31 drochner Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2011/07/19 19:56:37 drochner Exp $ | |
2 | 2 | |||
3 | 3 | |||
4 | # xmlada is built-in (not optional) due to gprbuild dependency | 4 | # xmlada is built-in (not optional) due to gprbuild dependency | |
5 | # zlib is built-in because it's mandatory. It even comes with AWS. | 5 | # zlib is built-in because it's mandatory. It even comes with AWS. | |
6 | # ASIS is not supported right now (custom build, requires part of GNAT) | 6 | # ASIS is not supported right now (custom build, requires part of GNAT) | |
7 | 7 | |||
8 | # The "ipv6" option effectively disabled IPv4 support, so it | 8 | # The "ipv6" option effectively disabled IPv4 support, so it | |
9 | # should not be switched on per default even on systems which | 9 | # should not be switched on per default even on systems which | |
10 | # support IPv6. For that reason, the option name is not "inet6". | 10 | # support IPv6. For that reason, the option name is not "inet6". | |
11 | 11 | |||
12 | PKG_OPTIONS_VAR= PKG_OPTIONS.aws | 12 | PKG_OPTIONS_VAR= PKG_OPTIONS.aws | |
13 | PKG_SUPPORTED_OPTIONS= ssl ldap ipv6 debug disable-shared-rt relocatable | 13 | PKG_SUPPORTED_OPTIONS= ssl ldap ipv6 debug disable-shared-rt relocatable | |
14 | PKG_SUGGESTED_OPTIONS= ssl | 14 | PKG_SUGGESTED_OPTIONS= ssl | |
15 | 15 | |||
16 | .include "../../mk/bsd.prefs.mk" | 16 | .include "../../mk/bsd.prefs.mk" | |
17 | .include "../../mk/bsd.options.mk" | 17 | .include "../../mk/bsd.options.mk" | |
18 | 18 | |||
19 | CONFIGURE_ARGS+= GCC=gnatgcc | 19 | CONFIGURE_ARGS+= GCC=gnatgcc | |
20 | CONFIGURE_ARGS+= PROCESSORS=1 | 20 | CONFIGURE_ARGS+= PROCESSORS=1 | |
21 | CONFIGURE_ARGS+= PYTHON=python2.6 | 21 | CONFIGURE_ARGS+= PYTHON=python${PYVERSSUFFIX} | |
22 | DOTBUILD= release | 22 | DOTBUILD= release | |
23 | 23 | |||
24 | # The system libgcc is from version 4.1 which doesn't include the symbol | 24 | # The system libgcc is from version 4.1 which doesn't include the symbol | |
25 | # _Unwind_GetIPInfo. If AWS uses the system zlib or if it's configured to use | 25 | # _Unwind_GetIPInfo. If AWS uses the system zlib or if it's configured to use | |
26 | # SSL the search path /usr/lib is inserted in the gnatmake/gprbuild | 26 | # SSL the search path /usr/lib is inserted in the gnatmake/gprbuild | |
27 | # instructions and the system libgcc.a is picked up instead of | 27 | # instructions and the system libgcc.a is picked up instead of | |
28 | # /usr/pkg/lib/libgcc.a. This is a bug confirmed by Adacore and an internal | 28 | # /usr/pkg/lib/libgcc.a. This is a bug confirmed by Adacore and an internal | |
29 | # bug report has been generated. In the meantime, this means AWS can't be | 29 | # bug report has been generated. In the meantime, this means AWS can't be | |
30 | # configured for HTTPS on NetBSD, and that zlib must be built from scratch on | 30 | # configured for HTTPS on NetBSD, and that zlib must be built from scratch on | |
31 | # NetBSD until NetBSD upgrades it's libgcc or until a new GNAT and GPRBuild | 31 | # NetBSD until NetBSD upgrades it's libgcc or until a new GNAT and GPRBuild | |
32 | # are delivered that don't have this bug. | 32 | # are delivered that don't have this bug. | |
33 | 33 | |||
34 | .if $(OPSYS) == "NetBSD" | 34 | .if $(OPSYS) == "NetBSD" |
$NetBSD: patch-af,v 1.1 2011/07/19 19:56:37 drochner Exp $
--- docs/gentexifile.orig 2011-07-10 18:18:29.252301000 +0000
+++ docs/gentexifile
@@ -51,7 +51,7 @@ if [ $# = 1 ]; then
echo "@group" >>${TMPTAR}
fi
echo "" >>${TMPTAR}
-sed -f ada.sed genout >>${TMPTAR}
+sed -E -f ada.sed genout >>${TMPTAR}
echo "" >>${TMPTAR}
if [ $# = 1 ]; then
echo "@end group" >>${TMPTAR}
$NetBSD: patch-ag,v 1.1 2011/07/19 19:56:37 drochner Exp $
--- templates_parser/docs/gentexifile.orig 2011-07-10 18:22:36.151053000 +0000
+++ templates_parser/docs/gentexifile
@@ -45,11 +45,11 @@ rm -f ${TMPTAR}
if [ $# = 1 ]; then
echo "@TPEXP{" >>${TMPTAR}
-sed -f ada.sed genout >>${TMPTAR}
+sed -E -f ada.sed genout >>${TMPTAR}
echo "}" >>${TMPTAR}
else
echo "@smallexample" >>${TMPTAR}
-sed -f ada.sed genout >>${TMPTAR}
+sed -E -f ada.sed genout >>${TMPTAR}
echo "@end smallexample" >>${TMPTAR}
fi
@@ -1,27 +1,29 @@ | @@ -1,27 +1,29 @@ | |||
1 | $NetBSD: patch-bh,v 1.1.1.1 2011/02/11 16:48:53 drochner Exp $ | 1 | $NetBSD: patch-bh,v 1.2 2011/07/19 19:56:37 drochner Exp $ | |
2 | 2 | |||
3 | --- docs/makefile.orig 2011-02-11 11:14:58.000000000 +0000 | 3 | --- docs/makefile.orig 2011-02-11 11:14:58.000000000 +0000 | |
4 | +++ docs/makefile | 4 | +++ docs/makefile | |
5 | @@ -209,14 +209,14 @@ check_texi: | 5 | @@ -209,14 +209,16 @@ check_texi: | |
6 | aws.texi: gen_texi check_texi | 6 | aws.texi: gen_texi check_texi | |
7 | 7 | |||
8 | install: | 8 | install: | |
9 | - -$(CP) aws.pdf $(I_DOC) | 9 | - -$(CP) aws.pdf $(I_DOC) | |
10 | - -$(CP) aws.html $(I_DOC) | 10 | - -$(CP) aws.html $(I_DOC) | |
11 | - -$(CP) aws.txt $(I_DOC) | 11 | - -$(CP) aws.txt $(I_DOC) | |
12 | - -$(CP) aws*.info* $(I_DOC) | 12 | - -$(CP) aws*.info* $(I_DOC) | |
13 | - -$(CP) ../templates_parser/docs/templates_parser.pdf $(I_DOC) | 13 | - -$(CP) ../templates_parser/docs/templates_parser.pdf $(I_DOC) | |
14 | - -$(CP) ../templates_parser/docs/templates_parser.html $(I_DOC) | 14 | - -$(CP) ../templates_parser/docs/templates_parser.html $(I_DOC) | |
15 | - -$(CP) ../templates_parser/docs/templates_parser.txt $(I_DOC) | 15 | - -$(CP) ../templates_parser/docs/templates_parser.txt $(I_DOC) | |
16 | - -$(CP) ../templates_parser/docs/templates_parser.info* $(I_DOC) | 16 | - -$(CP) ../templates_parser/docs/templates_parser.info* $(I_DOC) | |
17 | + -$(CP) aws.pdf $(DESTDIR)$(I_DOC) | 17 | + if [ -f aws.pdf ]; then \ | |
18 | + $(CP) aws.pdf $(DESTDIR)$(I_DOC); \ | |||
19 | + $(CP) ../templates_parser/docs/templates_parser.pdf $(DESTDIR)$(I_DOC); \ | |||
20 | + fi; | |||
18 | + -$(CP) aws.html $(DESTDIR)$(I_DOC) | 21 | + -$(CP) aws.html $(DESTDIR)$(I_DOC) | |
19 | + -$(CP) aws.txt $(DESTDIR)$(I_DOC) | 22 | + -$(CP) aws.txt $(DESTDIR)$(I_DOC) | |
20 | + -$(CP) aws*.info* $(DESTDIR)$(I_DOC) | 23 | + -$(CP) aws*.info* $(DESTDIR)$(I_DOC) | |
21 | + -$(CP) ../templates_parser/docs/templates_parser.pdf $(DESTDIR)$(I_DOC) | |||
22 | + -$(CP) ../templates_parser/docs/templates_parser.html $(DESTDIR)$(I_DOC) | 24 | + -$(CP) ../templates_parser/docs/templates_parser.html $(DESTDIR)$(I_DOC) | |
23 | + -$(CP) ../templates_parser/docs/templates_parser.txt $(DESTDIR)$(I_DOC) | 25 | + -$(CP) ../templates_parser/docs/templates_parser.txt $(DESTDIR)$(I_DOC) | |
24 | + -$(CP) ../templates_parser/docs/templates_parser.info* $(DESTDIR)$(I_DOC) | 26 | + -$(CP) ../templates_parser/docs/templates_parser.info* $(DESTDIR)$(I_DOC) | |
25 | 27 | |||
26 | clean: | 28 | clean: | |
27 | -$(GNAT) clean -XLIBRARY_TYPE=static -Pdocs | 29 | -$(GNAT) clean -XLIBRARY_TYPE=static -Pdocs |