[29833] trunk/dports/x11/gtk-theme-switch/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 11 05:08:46 PDT 2007


Revision: 29833
          http://trac.macosforge.org/projects/macports/changeset/29833
Author:   nox at macports.org
Date:     2007-10-11 05:08:46 -0700 (Thu, 11 Oct 2007)

Log Message:
-----------
gtk-theme-switch (closes #12870):
 * Not anymore depends on gtk-engines2 (and should never have.)
 * Added universal support.
 * Added standard doc installation.
 * Now uses worksrcdir and distname instead of distfiles.
 * Removed useless xinstall arguments.
 * Added sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/x11/gtk-theme-switch/Portfile

Modified: trunk/dports/x11/gtk-theme-switch/Portfile
===================================================================
--- trunk/dports/x11/gtk-theme-switch/Portfile	2007-10-11 12:06:12 UTC (rev 29832)
+++ trunk/dports/x11/gtk-theme-switch/Portfile	2007-10-11 12:08:46 UTC (rev 29833)
@@ -1,8 +1,10 @@
 # $Id$
 
 PortSystem		1.0
+
 name			gtk-theme-switch
 version			2.0.4
+revision        1
 categories		x11
 maintainers		jbenninghoff at mac.com
 description		command-line theme switcher for gtk2
@@ -13,22 +15,35 @@
 
 homepage		http://www.muhri.net/nav.php3?node=gts
 master_sites		http://ftp.debian.org/debian/pool/main/g/gtk-theme-switch/
-distfiles	gtk-theme-switch_${version}.tar.gz
+worksrcdir      ${distname}
+distname        ${name}_${version}
 platforms		darwin
-checksums		md5 ea213872031bebcb0f3d736352a5aae7
 
-depends_lib		lib:gtk-engines2:gtk-engines2
+checksums       md5 ea213872031bebcb0f3d736352a5aae7 \
+                sha1 3011bd8660b4c52771ffeed5a8337c8376b76511 \
+                rmd160 13c66e1fe866461fe1236230da9a3a72c138515b
 
 build.target	switch2
 
 use_configure	no
 
 destroot {
-	xinstall -m 755 ${worksrcpath}/switch2 ${destroot}${prefix}/bin
-	xinstall -m 644 ${worksrcpath}/switch.1 \
-		${destroot}${prefix}/share/man/man1/switch2.1
+    xinstall ${worksrcpath}/switch2 ${destroot}${prefix}/bin
+
+    xinstall -m 0644 ${worksrcpath}/switch.1 \
+        ${destroot}${prefix}/share/man/man1/switch2.1
+
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} ChangeLog readme todo ${destroot}${docdir}
 }
 
+variant universal {
+    post-patch {
+        reinplace -E "/^CFLAGS =/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
+    }
+}
+
 livecheck.check regex
 livecheck.url   ${master_sites}?M=D
 livecheck.regex ${name}_(\\d+(?:\\.\\d+)*)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071011/2a9269b0/attachment.html


More information about the macports-changes mailing list