diff options
author | asau <asau> | 2009-12-15 13:53:24 +0000 |
---|---|---|
committer | asau <asau> | 2009-12-15 13:53:24 +0000 |
commit | a82d5b6865d1379381c8363303e3af07d63933c8 (patch) | |
tree | 9828f6d053d0101f2648df350952d850f2b0a8d3 /lang | |
parent | c52ee754cc102b0db0379cedd763371927cb7e70 (diff) | |
download | pkgsrc-a82d5b6865d1379381c8363303e3af07d63933c8.tar.gz |
Deduplicate, move common code into more appropriate place.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang-doc/Makefile | 8 | ||||
-rw-r--r-- | lang/erlang/Makefile | 8 | ||||
-rw-r--r-- | lang/erlang/Makefile.versions | 8 |
3 files changed, 9 insertions, 15 deletions
diff --git a/lang/erlang-doc/Makefile b/lang/erlang-doc/Makefile index 69a0d75e59d..7fcddc6ae09 100644 --- a/lang/erlang-doc/Makefile +++ b/lang/erlang-doc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2009/12/15 13:32:10 asau Exp $ +# $NetBSD: Makefile,v 1.7 2009/12/15 13:53:24 asau Exp $ DISTNAME= otp_doc_html_${DIST_VERSION_MAJOR}${DIST_VERSION_MINOR:D-${DIST_VERSION_MINOR}} PKGNAME= erlang-doc-${ERLANG_VERSION} @@ -31,10 +31,4 @@ do-install: .include "../../lang/erlang/Makefile.versions" -# Generate PLIST -.for _pkg_ _version_ in $(_VERSIONS) -PRINT_PLIST_AWK+= {if ($$0 ~ /\/$(_pkg_)-$(_version_)\//) {sub(/\/$(_pkg_)-$(_version_)\//,"/$(_pkg_)-$${VERSION.$(_pkg_)}/", $$0);}} -.endfor -PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}} - .include "../../mk/bsd.pkg.mk" diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index b4ad49e9b45..1d3d20e160c 100644 --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.42 2009/12/15 12:07:57 asau Exp $ +# $NetBSD: Makefile,v 1.43 2009/12/15 13:53:24 asau Exp $ DISTNAME= otp_src_${DIST_VERSION_MAJOR}${DIST_VERSION_MINOR:D-${DIST_VERSION_MINOR}} PKGNAME= erlang-${ERLANG_VERSION} @@ -73,12 +73,6 @@ pre-build: post-install: chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib -# Generate PLIST -.for _pkg_ _version_ in $(_VERSIONS) -PRINT_PLIST_AWK+= {if ($$0 ~ /\/$(_pkg_)-$(_version_)\//) {sub(/\/$(_pkg_)-$(_version_)\//,"/$(_pkg_)-$${VERSION.$(_pkg_)}/", $$0);}} -.endfor -PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}} - .include "../../security/openssl/buildlink3.mk" .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/erlang/Makefile.versions b/lang/erlang/Makefile.versions index a0c43dc734c..d0b3f74f802 100644 --- a/lang/erlang/Makefile.versions +++ b/lang/erlang/Makefile.versions @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.versions,v 1.8 2009/12/15 13:33:47 asau Exp $ +# $NetBSD: Makefile.versions,v 1.9 2009/12/15 13:53:24 asau Exp $ ERLANG_VERSION= 13.2.3 DIST_VERSION_MAJOR= R13B03 @@ -67,3 +67,9 @@ PLIST_SUBST+= VERSION=${DIST_VERSION_MAJOR} VERSION.${name}=${version} PLIST_SUBST+= VERSION.${name}=${version} .endfor + +# Generate PLIST +.for _pkg_ _version_ in $(_VERSIONS) +PRINT_PLIST_AWK+= {if ($$0 ~ /\/$(_pkg_)-$(_version_)\//) {sub(/\/$(_pkg_)-$(_version_)\//,"/$(_pkg_)-$${VERSION.$(_pkg_)}/", $$0);}} +.endfor +PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}} |