[56222] trunk/dports/games/rogue/Portfile
aschenke at macports.org
aschenke at macports.org
Tue Aug 25 03:40:35 PDT 2009
Revision: 56222
http://trac.macports.org/changeset/56222
Author: aschenke at macports.org
Date: 2009-08-25 03:40:35 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
added singleuser variant to support --with-no-root-privileges installs in MacPorts 1.8.0
Modified Paths:
--------------
trunk/dports/games/rogue/Portfile
Modified: trunk/dports/games/rogue/Portfile
===================================================================
--- trunk/dports/games/rogue/Portfile 2009-08-25 10:40:12 UTC (rev 56221)
+++ trunk/dports/games/rogue/Portfile 2009-08-25 10:40:35 UTC (rev 56222)
@@ -25,7 +25,14 @@
worksrcdir ${name}${version}
-pre-configure { addgroup games }
+variant singleuser description {Disables system-wide scoreboards and allows local user installation without root privileges} {}
+
+pre-configure {
+ if {![variant_isset singleuser]} {
+ addgroup games
+ }
+ }
+
post-configure {
reinplace "s|rogue.scr|${prefix}/var/games/rogue/rogue.scr|" ${worksrcpath}/config.h
reinplace "s|rogue.lck|${prefix}/var/games/rogue/rogue.lck|" ${worksrcpath}/config.h
@@ -35,10 +42,19 @@
build.cmd { make }
destroot {
- xinstall -m 2755 -g games -c ${worksrcpath}/rogue ${destroot}${prefix}/bin/rogue
+ if {![variant_isset singleuser]} {
+ xinstall -m 2755 -g games -c ${worksrcpath}/rogue ${destroot}${prefix}/bin/rogue
+ } else {
+ xinstall -m 755 -c ${worksrcpath}/rogue ${destroot}${prefix}/bin/rogue
+ }
+
xinstall -m 644 -c ${worksrcpath}/rogue.6 ${destroot}${prefix}/share/man/man6/rogue.6
-
- xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/rogue
+
+ if {![variant_isset singleuser]} {
+ xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/rogue
+ } else {
+ xinstall -m 775 -d ${destroot}${prefix}/var/games/rogue
+ }
file mkdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -c ${worksrcpath}/${name}.doc ${destroot}${prefix}/share/doc/${name}/${name}.doc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/bb8b06f9/attachment.html>
More information about the macports-changes
mailing list