[29066] trunk/dports/archivers/lha/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 14 05:50:37 PDT 2007


Revision: 29066
          http://trac.macosforge.org/projects/macports/changeset/29066
Author:   nox at macports.org
Date:     2007-09-14 05:50:36 -0700 (Fri, 14 Sep 2007)

Log Message:
-----------
lha (closes #12678):
 * Documentation is now installed in a versioned docdir.
 * Reworked post-destroot procedure to be a little more concise.
 * Stripping is now done with corresponding destroot.target.
 * manpages are now correctly installed.

Modified Paths:
--------------
    trunk/dports/archivers/lha/Portfile

Modified: trunk/dports/archivers/lha/Portfile
===================================================================
--- trunk/dports/archivers/lha/Portfile	2007-09-14 12:48:06 UTC (rev 29065)
+++ trunk/dports/archivers/lha/Portfile	2007-09-14 12:50:36 UTC (rev 29066)
@@ -3,45 +3,39 @@
 PortSystem 1.0
 name		lha
 version		1.14i-ac20050924p1
+revision    1
 epoch		20061016
 categories	archivers sysutils
 description	Utility for creating and opening lzh archives
 maintainers	jc at crazic.ru
+
 long_description ${description}
+
 homepage	http://lha.sourceforge.jp/
 set sfjpid	22231
+
 master_sites	http://keihanna.dl.sourceforge.jp/lha/${sfjpid}/ \
 		http://qgpop.dl.sourceforge.jp/lha/${sfjpid}/ \
 		http://osdn.dl.sourceforge.jp/lha/${sfjpid}/
+
 checksums	md5 9f52430410928ba4390a73a41a36d56f \
 		sha1 2491c8b584c21759f1d3819f57fa0e1cbc235092 \
 		rmd160 7603dc93d8afdeed6cfbaa193f68ae4283bea39b
 
-post-build	{
-	system "strip ${build.dir}/src/$name"
-}
+configure.args  --mandir=${prefix}/share/man
 
 test.run	yes
 test.target	check
 
-destroot	{
-	xinstall -m 755 -d ${destroot}/${prefix}/bin
-	file copy ${build.dir}/src/$name ${destroot}/${prefix}/bin
-}
+destroot.target install-strip
 
-post-destroot	{
-	xinstall -m 755 -d \
-	  ${destroot}${prefix}/share/doc/${name}/olddoc
-	xinstall -m 755 -d \
-	  ${destroot}${prefix}/share/doc/${name}/man
-	xinstall -m 644 -W ${worksrcpath} 00readme.autoconf ChangeLog \
-	  Hacking_of_LHa header.doc.euc \
-	  ${destroot}${prefix}/share/doc/${name}
-	foreach f {*.txt *.euc *.eng} {
-		eval xinstall -m 644 \
-		[glob ${worksrcpath}/olddoc/${f}] \
-		${destroot}${prefix}/share/doc/${name}/olddoc
-	}
-	xinstall -m 644 ${worksrcpath}/man/lha.man \
-	  ${destroot}${prefix}/share/doc/${name}/man
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}-${version}
+
+    xinstall -d ${destroot}${docdir}/olddoc
+    xinstall -m 0644 -W ${worksrcpath} ChangeLog Hacking_of_LHa header.doc.euc \
+        ${destroot}${docdir}
+    eval xinstall -m 0644 [glob ${worksrcpath}/olddoc/*.{txt,euc,eng}] \
+        ${destroot}${docdir}/olddoc
 }
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070914/5c05cbff/attachment.html


More information about the macports-changes mailing list