[90812] trunk/dports/sysutils/iselect
ryandesign at macports.org
ryandesign at macports.org
Wed Mar 14 18:07:52 PDT 2012
Revision: 90812
https://trac.macports.org/changeset/90812
Author: ryandesign at macports.org
Date: 2012-03-14 18:07:52 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
iselect: use a patchfile instead of reinplaces
Modified Paths:
--------------
trunk/dports/sysutils/iselect/Portfile
Added Paths:
-----------
trunk/dports/sysutils/iselect/files/
trunk/dports/sysutils/iselect/files/patch-Makefile.in.diff
Modified: trunk/dports/sysutils/iselect/Portfile
===================================================================
--- trunk/dports/sysutils/iselect/Portfile 2012-03-15 01:01:47 UTC (rev 90811)
+++ trunk/dports/sysutils/iselect/Portfile 2012-03-15 01:07:52 UTC (rev 90812)
@@ -23,11 +23,7 @@
depends_lib port:ncurses
-post-patch {
- reinplace "s|\$\{exec_prefix\}/man|@mandir@|g" ${worksrcpath}/Makefile.in
- reinplace "s|\$\(bindir\)|\$\(DESTDIR)\$\(bindir\)|g" ${worksrcpath}/Makefile.in
- reinplace "s|\$\(mandir\)|\$\(DESTDIR)\$\(mandir\)|g" ${worksrcpath}/Makefile.in
-}
+patchfiles patch-Makefile.in.diff
livecheck.type regex
livecheck.url ${homepage}
Added: trunk/dports/sysutils/iselect/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/sysutils/iselect/files/patch-Makefile.in.diff (rev 0)
+++ trunk/dports/sysutils/iselect/files/patch-Makefile.in.diff 2012-03-15 01:07:52 UTC (rev 90812)
@@ -0,0 +1,26 @@
+--- Makefile.in.orig 2005-10-05 13:18:37.000000000 -0500
++++ Makefile.in 2012-03-14 20:05:56.000000000 -0500
+@@ -21,7 +21,7 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ bindir = @bindir@
+-mandir = ${exec_prefix}/man
++mandir = @mandir@
+
+ # ------------------------------------------------
+ # THE DEFAULT TARGETS
+@@ -138,10 +138,10 @@
+ # ------------------------------------------------
+
+ install: all
+- $(SHTOOL) mkdir -f -p -m 755 $(bindir)
+- $(SHTOOL) mkdir -f -p -m 755 $(mandir)/man1
+- $(SHTOOL) install -c -m 755 -s iselect $(bindir)/iselect
+- $(SHTOOL) install -c -m 644 iselect.1 $(mandir)/man1/iselect.1
++ $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
++ $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
++ $(SHTOOL) install -c -m 755 -s iselect $(DESTDIR)$(bindir)/iselect
++ $(SHTOOL) install -c -m 644 iselect.1 $(DESTDIR)$(mandir)/man1/iselect.1
+
+ # ------------------------------------------------
+ # CLEANUP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120314/ea21d316/attachment.html>
More information about the macports-changes
mailing list