diff options
author | jlam <jlam@pkgsrc.org> | 2007-10-25 21:04:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-10-25 21:04:21 +0000 |
commit | b5e6ca3a7e36bba97ce2153247efaeb97ac6facb (patch) | |
tree | b8aa93dd00c811788670e0756c30a0c0cb8dea62 /lang/ruby | |
parent | 65d4b8652df4e0ae4c1dad6ea540fe4351790f8b (diff) | |
download | pkgsrc-b5e6ca3a7e36bba97ce2153247efaeb97ac6facb.tar.gz |
Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition. Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile index 757c2144838..d8014602eae 100644 --- a/lang/ruby/Makefile +++ b/lang/ruby/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.44 2007/09/09 14:20:26 taca Exp $ +# $NetBSD: Makefile,v 1.45 2007/10/25 21:04:22 jlam Exp $ DISTNAME= # empty PKGNAME= ruby-${RUBY_VERSION_SUFFIX} @@ -14,7 +14,6 @@ CONFLICTS= pkg_alternatives-[0-9]* NO_CHECKSUM= yes NO_CONFIGURE= yes NO_BUILD= yes -PLIST_SRC= ${WRKDIR}/PLIST .include "../../lang/ruby/rubyversion.mk" @@ -27,15 +26,21 @@ RUBY_COMMANDS+= erb h2rb rdoc ri testrb INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 +.if ${RUBY_NAME} == "ruby" +GENERATE_PLIST+= ${ECHO} "@comment This plist intentionally left empty"; +.else +. for f in ${RUBY_COMMANDS} +GENERATE_PLIST+= ${ECHO} bin/${f}; +. endfor +GENERATE_PLIST+= ${ECHO} man/man1/ruby.1; +.endif + do-install: - ${CP} ${PKGDIR}/PLIST ${PLIST_SRC} .if ${RUBY_NAME} != "ruby" -.for f in ${RUBY_COMMANDS} +. for f in ${RUBY_COMMANDS} ${LN} -sf ${f}${RUBY_VER} ${PREFIX}/bin/${f} - ${ECHO} bin/${f} >> ${PLIST_SRC} -.endfor +. endfor ${LN} -sf ${RUBY_NAME}.1 ${PREFIX}/${PKGMANDIR}/man1/ruby.1 - ${ECHO} man/man1/ruby.1 >> ${PLIST_SRC} .endif .include "../../mk/bsd.pkg.mk" |