[144725] trunk/dports/devel/svn2git
ryandesign at macports.org
ryandesign at macports.org
Sat Jan 16 05:38:08 PST 2016
Revision: 144725
https://trac.macports.org/changeset/144725
Author: ryandesign at macports.org
Date: 2016-01-16 05:38:08 -0800 (Sat, 16 Jan 2016)
Log Message:
-----------
svn2git: put the Makefile into the files directory rather than creating it in post-extract
Modified Paths:
--------------
trunk/dports/devel/svn2git/Portfile
Added Paths:
-----------
trunk/dports/devel/svn2git/files/Makefile-Install.in
Modified: trunk/dports/devel/svn2git/Portfile
===================================================================
--- trunk/dports/devel/svn2git/Portfile 2016-01-16 11:30:16 UTC (rev 144724)
+++ trunk/dports/devel/svn2git/Portfile 2016-01-16 13:38:08 UTC (rev 144725)
@@ -23,25 +23,18 @@
depends_lib-append port:apr \
port:subversion
+# muniversal destroot requires a Makefile
+post-extract {
+ copy ${filespath}/Makefile-Install.in ${worksrcpath}/Makefile-Install
+}
+
post-patch {
xinstall -m 644 ${filespath}/local-config.pri.in ${worksrcpath}/src/local-config.pri
- reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/local-config.pri
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile-Install ${worksrcpath}/src/local-config.pri
}
configure.args-append \
CONFIG-=app_bundle
-set docdir ${prefix}/share/doc/${subport}
-
-# muniversal build requires Makefile
-post-extract {
- set makefile [open ${worksrcpath}/Makefile-Install "w"]
- puts ${makefile} "install:"
- puts ${makefile} "\t/usr/bin/install -m 0755 svn-all-fast-export \$(DESTDIR)${prefix}/bin"
- puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${docdir}"
- puts ${makefile} "\t/usr/bin/install -m 0644 README.md \$(DESTDIR)${docdir}"
- puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${docdir}/examples"
- puts ${makefile} "\t/usr/bin/install -m 0644 samples/* \$(DESTDIR)${docdir}/examples"
- close ${makefile}
-}
-destroot.args-append -f Makefile-Install
+destroot.args-append \
+ -f Makefile-Install
Added: trunk/dports/devel/svn2git/files/Makefile-Install.in
===================================================================
--- trunk/dports/devel/svn2git/files/Makefile-Install.in (rev 0)
+++ trunk/dports/devel/svn2git/files/Makefile-Install.in 2016-01-16 13:38:08 UTC (rev 144725)
@@ -0,0 +1,9 @@
+INSTALL=/usr/bin/install
+PREFIX=@PREFIX@
+
+install:
+ $(INSTALL) -m 0755 svn-all-fast-export $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/doc/svn2git
+ $(INSTALL) -m 0644 README.md $(DESTDIR)$(PREFIX)/share/doc/svn2git
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/doc/svn2git/examples
+ $(INSTALL) -m 0644 samples/* $(DESTDIR)$(PREFIX)/share/doc/svn2git/examples
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160116/5986ad9c/attachment.html>
More information about the macports-changes
mailing list