[32030] trunk/dports/sysutils/createrepo

afb at macports.org afb at macports.org
Fri Dec 14 00:30:53 PST 2007


Revision: 32030
          http://trac.macosforge.org/projects/macports/changeset/32030
Author:   afb at macports.org
Date:     2007-12-14 00:30:51 -0800 (Fri, 14 Dec 2007)

Log Message:
-----------
port upgrade: createrepo 0.4.11 + avoid using the ill-defined python program

Modified Paths:
--------------
    trunk/dports/sysutils/createrepo/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/createrepo/files/patch-Makefile
    trunk/dports/sysutils/createrepo/files/patch-modifyrepo.py

Modified: trunk/dports/sysutils/createrepo/Portfile
===================================================================
--- trunk/dports/sysutils/createrepo/Portfile	2007-12-14 07:40:18 UTC (rev 32029)
+++ trunk/dports/sysutils/createrepo/Portfile	2007-12-14 08:30:51 UTC (rev 32030)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name			createrepo
-version			0.4.10
+version			0.4.11
 categories		sysutils
 platforms		darwin
 maintainers		afb at macports.org
@@ -14,11 +14,12 @@
 
 homepage		http://linux.duke.edu/projects/metadata/
 master_sites		${homepage}generate/
-checksums		md5 733971b7aefd2597ad391feae01a6d15 \
-				sha1 a09aade9703eead010ea8e633b9af8cc46710796 \
-				rmd160 e6afab6df0afa5abba2fd20b517862e1153053bc
-patchfiles		patch-createrepo patch-modifyrepo \
-			patch-dumpMetadata.py patch-genpkgmetadata.py patch-readMetadata.py
+checksums		md5 3e9ccf4abcffe3f49af078c83611eda2 \
+				sha1 10316e9ee98e92f961c727cf991589611a2de7cb \
+				rmd160 74b89d3f097914bd5fc67282d083c063ad7fc18e
+patchfiles		patch-Makefile patch-createrepo patch-modifyrepo \
+			patch-dumpMetadata.py patch-genpkgmetadata.py \
+			patch-readMetadata.py patch-modifyrepo.py
 
 depends_run		port:python24 port:rpm port:py-yum-metadata-parser
 # this should be depends_test:
@@ -28,12 +29,13 @@
 	reinplace "s|__PREFIX__|${prefix}|g" \
 		${worksrcpath}/bin/createrepo ${worksrcpath}/bin/modifyrepo
 	reinplace "s|__PYTHON__|${prefix}/bin/python2.4|g" \
-		${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py ${worksrcpath}/readMetadata.py
+		${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py \
+		${worksrcpath}/readMetadata.py ${worksrcpath}/modifyrepo.py
 }
 
 use_configure	no
 
-build.args	prefix=${prefix}
+build.args	prefix=${prefix} PYTHON="${prefix}/bin/python2.4"
 
 destroot.args	prefix=${prefix} INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
 

Added: trunk/dports/sysutils/createrepo/files/patch-Makefile
===================================================================
--- trunk/dports/sysutils/createrepo/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/sysutils/createrepo/files/patch-Makefile	2007-12-14 08:30:51 UTC (rev 32030)
@@ -0,0 +1,20 @@
+--- Makefile.orig	2007-11-26 21:23:16.000000000 +0100
++++ Makefile	2007-12-14 09:25:01.000000000 +0100
+@@ -6,6 +6,8 @@
+ prefix = /usr
+ exec_prefix = ${prefix}
+ 
++PYTHON = python
++
+ bindir = ${exec_prefix}/bin
+ sbindir = ${exec_prefix}/sbin
+ libexecdir = ${exec_prefix}/libexec
+@@ -46,7 +48,7 @@
+ 
+ .SUFFIXES: .py .pyc
+ .py.pyc: 
+-	python -c "import py_compile; py_compile.compile($*.py)"
++	$(PYTHON) -c "import py_compile; py_compile.compile($*.py)"
+ 
+ 
+ all: $(MODULES)

Added: trunk/dports/sysutils/createrepo/files/patch-modifyrepo.py
===================================================================
--- trunk/dports/sysutils/createrepo/files/patch-modifyrepo.py	                        (rev 0)
+++ trunk/dports/sysutils/createrepo/files/patch-modifyrepo.py	2007-12-14 08:30:51 UTC (rev 32030)
@@ -0,0 +1,8 @@
+--- modifyrepo.py.orig	2007-11-26 21:23:16.000000000 +0100
++++ modifyrepo.py	2007-12-14 09:17:43.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!__PYTHON__
+ # $Id$
+ #
+ # This tools is used to insert arbitrary metadata into an RPM repository.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071214/456f0493/attachment.html


More information about the macports-changes mailing list