[26728] trunk/dports/sysutils

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 5 06:11:57 PDT 2007


Revision: 26728
          http://trac.macosforge.org/projects/macports/changeset/26728
Author:   afb at macports.org
Date:     2007-07-05 06:11:57 -0700 (Thu, 05 Jul 2007)

Log Message:
-----------
new port, for browsing RPM repodata

Added Paths:
-----------
    trunk/dports/sysutils/repoview/
    trunk/dports/sysutils/repoview/Portfile
    trunk/dports/sysutils/repoview/files/
    trunk/dports/sysutils/repoview/files/patch-repoview.py

Added: trunk/dports/sysutils/repoview/Portfile
===================================================================
--- trunk/dports/sysutils/repoview/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/repoview/Portfile	2007-07-05 13:11:57 UTC (rev 26728)
@@ -0,0 +1,38 @@
+# $Id$
+
+PortSystem 1.0
+
+name			repoview
+version			0.5.2
+categories		sysutils
+platforms		darwin
+maintainers		afb at macports.org
+description		make Yum repositories browseable
+long_description	RepoView allows one to easily create a set of static HTML pages \
+			in a YUM repository, allowing simple browsing of available packages. \
+			It uses kid templating engine to create the pages and is therefore \
+			easily customizeable.
+
+homepage		http://linux.duke.edu/projects/mini/repoview/
+master_sites		${homepage}download/
+checksums		md5 cc15d6ab4df4217db0ef8f0608343521 \
+				sha1 92d4e421775f0616ea90b7307776b50c222e479f \
+				rmd160 4b68b84095104a8e5ff6657c76e9ff8d63fc5b9a
+patchfiles		patch-repoview.py
+
+depends_run		port:python24 port:yum port:py-kid
+
+post-patch {
+	reinplace "s|/usr/bin/python|${prefix}/bin/python2.4|g" ${worksrcpath}/repoview.py
+	reinplace "s|'./templates'|'${prefix}/share/repoview/templates'|g" ${worksrcpath}/repoview.py
+}
+
+use_configure	no
+build {}
+
+destroot {
+	xinstall -m 755 ${worksrcpath}/repoview.py ${destroot}${prefix}/bin/repoview
+	xinstall -m 644 ${worksrcpath}/repoview.8 ${destroot}${prefix}/share/man/man8
+	xinstall -d -m 755 ${destroot}${prefix}/share/repoview
+	copy ${worksrcpath}/templates ${destroot}${prefix}/share/repoview/templates
+}


Property changes on: trunk/dports/sysutils/repoview/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/sysutils/repoview/files/patch-repoview.py
===================================================================
--- trunk/dports/sysutils/repoview/files/patch-repoview.py	                        (rev 0)
+++ trunk/dports/sysutils/repoview/files/patch-repoview.py	2007-07-05 13:11:57 UTC (rev 26728)
@@ -0,0 +1,57 @@
+# Fedora: yum-2.9-api.patch
+--- repoview.py.orig	2006-07-04 20:53:55.000000000 -0400
++++ repoview.py	2006-07-04 21:21:56.000000000 -0400
+@@ -42,7 +42,7 @@
+ try:
+     from yum.comps import Comps, CompsException
+     from yum.mdparser import MDParser
+-    from repomd.repoMDObject import RepoMD
++    from yum.repoMDObject import RepoMD
+ except ImportError:
+     try:
+         from noyum.comps import Comps, CompsException
+@@ -364,7 +364,7 @@
+         except IOError: 
+             return 1
+         checksum = checksum.strip()
+-        if checksum != self.repodata['primary']['checksum'][1]: 
++        if checksum != self.repodata['primary'].checksum[1]: 
+             return 1
+         _say("RepoView: Repository has not changed. Force the run with -f.\n")
+         sys.exit(0)
+@@ -374,7 +374,7 @@
+         Utility method for parsing comps.xml.
+         """
+         _say('parsing comps...', 1)
+-        loc = self.repodata['group']['relativepath']
++        loc = self.repodata['group'].location[1]
+         comps = Comps()
+         try:
+             comps.add(os.path.join(self.repodir, loc))
+@@ -436,7 +436,7 @@
+         Utility method for processing primary.xml.
+         """
+         _say('parsing primary...', 1)
+-        loc = self.repodata['primary']['relativepath']
++        loc = self.repodata['primary'].location[1]
+         mdp = MDParser(os.path.join(self.repodir, loc))
+         ignored = 0
+         for package in mdp:
+@@ -507,7 +507,7 @@
+         Utility method to get data from other.xml.
+         """
+         _say('parsing other...', 1)
+-        loc = self.repodata['other']['relativepath']
++        loc = self.repodata['other'].location[1]
+         otherxml = os.path.join(self.repodir, loc)
+         ignored = 0
+         mdp = MDParser(otherxml)
+@@ -789,7 +789,7 @@
+         _say('writing checksum...', 1)
+         chkfile = os.path.join(self.outdir, 'checksum')
+         fh = open(chkfile, 'w')
+-        fh.write(self.repodata['primary']['checksum'][1])
++        fh.write(self.repodata['primary'].checksum[1])
+         fh.close()
+         _say('done\n')
+         _say('Moving new repoview dir in place...', 1)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070705/4c76760e/attachment.html


More information about the macports-changes mailing list