- Update port to upstream release 2.6.3 - Use correct download URL (move from Google code to bitbucket) - Add LICENSE - USE_* -> USES - Generate plist via pydistutils - Use SPC option on i386 only, it's not supported elsewhere - Stagify - Change URLs in pkg-message (pointing to bitbucket), simplify Special thanks to Carlos (submitter) for reviewing, and to Christoph Reiter (Quodlibet project) for fixing the '--record' option for Quodlibet with pydistutils. PR: ports/187263 Submitted by: Carlos Jacobo Puga Medina <cjpugmed@gmail.com> Reviewed by: submitter Approved by: thierry (mentor), maintainer timeout MFH: 2014Q2
145 lines
4.9 KiB
Text
145 lines
4.9 KiB
Text
--- gdist/icons.py.orig 2013-09-25 12:31:19.000000000 +0200
|
|
+++ gdist/icons.py 2014-04-23 11:06:22.328926759 +0200
|
|
@@ -35,13 +35,16 @@
|
|
prefix = None
|
|
|
|
def initialize_options(self):
|
|
- pass
|
|
+ self.outfiles = []
|
|
|
|
def finalize_options(self):
|
|
self.set_undefined_options('install',
|
|
('root', 'root'),
|
|
('install_base', 'prefix'))
|
|
|
|
+ def get_outputs(self):
|
|
+ return self.outfiles
|
|
+
|
|
def run(self):
|
|
# install into hicolor icon theme
|
|
basepath = os.path.join(self.prefix, 'share', 'icons', 'hicolor')
|
|
@@ -52,11 +55,13 @@
|
|
|
|
scalable = os.path.join(local, "scalable", "apps")
|
|
scalable_dst = os.path.join(basepath, "scalable", "apps")
|
|
- self.copy_tree(scalable, scalable_dst)
|
|
+ out = self.copy_tree(scalable, scalable_dst)
|
|
+ self.outfiles.extend(out)
|
|
|
|
png = os.path.join(local, "64x64", "apps")
|
|
png_dst = os.path.join(basepath, "64x64", "apps")
|
|
- self.copy_tree(png, png_dst)
|
|
+ out = self.copy_tree(png, png_dst)
|
|
+ self.outfiles.extend(out)
|
|
|
|
# this fails during packaging.. so ignore the outcome
|
|
subprocess.call(['gtk-update-icon-cache', basepath])
|
|
@@ -66,4 +71,5 @@
|
|
if self.root is not None:
|
|
basepath = change_root(self.root, basepath)
|
|
|
|
- self.copy_tree(png, basepath)
|
|
+ out = self.copy_tree(png, basepath)
|
|
+ self.outfiles.extend(out)
|
|
--- gdist/man.py.orig 2013-09-25 12:31:19.000000000 +0200
|
|
+++ gdist/man.py 2014-04-23 11:10:03.793912457 +0200
|
|
@@ -29,7 +29,7 @@
|
|
root = None
|
|
|
|
def initialize_options(self):
|
|
- pass
|
|
+ self.outfiles = []
|
|
|
|
def finalize_options(self):
|
|
self.set_undefined_options('install', ('root', 'root'), ('install_base', 'prefix'))
|
|
@@ -38,15 +38,22 @@
|
|
if not man_page[-1].isdigit():
|
|
raise SystemExit("%r has no section" % man_page)
|
|
|
|
+ def get_outputs(self):
|
|
+ return self.outfiles
|
|
+
|
|
def run(self):
|
|
basepath = os.path.join(self.prefix, 'share', 'man')
|
|
if self.root != None:
|
|
basepath = change_root(self.root, basepath)
|
|
- self.mkpath(basepath)
|
|
+ out = self.mkpath(basepath)
|
|
+ self.outfiles.extend(out or [])
|
|
for man_page in self.man_pages:
|
|
manpath = os.path.join(basepath, "man" + man_page[-1])
|
|
self.mkpath(manpath)
|
|
+ out = self.mkpath(manpath)
|
|
+ self.outfiles.extend(out or [])
|
|
fullpath = os.path.join(manpath, os.path.basename(man_page))
|
|
- self.copy_file(man_page, fullpath)
|
|
+ (out, _) = self.copy_file(man_page, fullpath)
|
|
+ self.outfiles.append(out)
|
|
|
|
__all__ = ["install_man"]
|
|
--- gdist/po.py.orig 2013-09-25 12:31:19.000000000 +0200
|
|
+++ gdist/po.py 2014-04-23 11:06:22.329926420 +0200
|
|
@@ -149,7 +149,7 @@
|
|
root = None
|
|
|
|
def initialize_options(self):
|
|
- pass
|
|
+ self.outfiles = []
|
|
|
|
def finalize_options(self):
|
|
self.set_undefined_options('build', ('build_base', 'build_base'))
|
|
@@ -159,6 +159,9 @@
|
|
('install_base', 'install_base'),
|
|
('skip_build', 'skip_build'))
|
|
|
|
+ def get_outputs(self):
|
|
+ return self.outfiles
|
|
+
|
|
def run(self):
|
|
if not self.skip_build:
|
|
self.run_command('build_mo')
|
|
@@ -166,6 +169,7 @@
|
|
dest = os.path.join(self.install_base, "share", "locale")
|
|
if self.root != None:
|
|
dest = change_root(self.root, dest)
|
|
- self.copy_tree(src, dest)
|
|
+ out = self.copy_tree(src, dest)
|
|
+ self.outfiles.extend(out)
|
|
|
|
__all__ = ["build_mo", "install_mo", "po_stats", "check_pot"]
|
|
--- gdist/shortcuts.py.orig 2013-09-25 12:31:19.000000000 +0200
|
|
+++ gdist/shortcuts.py 2014-04-23 11:11:31.218905210 +0200
|
|
@@ -66,7 +66,7 @@
|
|
root = None
|
|
|
|
def initialize_options(self):
|
|
- pass
|
|
+ self.outfiles = []
|
|
|
|
def finalize_options(self):
|
|
self.set_undefined_options('build', ('build_base', 'build_base'))
|
|
@@ -79,6 +79,9 @@
|
|
self.set_undefined_options(
|
|
'build_shortcuts', ('shortcuts', 'shortcuts'))
|
|
|
|
+ def get_outputs(self):
|
|
+ return self.outfiles
|
|
+
|
|
def run(self):
|
|
if not self.skip_build:
|
|
self.run_command('build_shortcuts')
|
|
@@ -86,10 +89,13 @@
|
|
if self.root != None:
|
|
basepath = change_root(self.root, basepath)
|
|
srcpath = os.path.join(self.build_base, 'share', 'applications')
|
|
- self.mkpath(basepath)
|
|
+ out = self.mkpath(basepath)
|
|
+ self.outfiles.extend(out or [])
|
|
for shortcut in self.shortcuts:
|
|
fullsrc = os.path.join(srcpath, shortcut)
|
|
fullpath = os.path.join(basepath, shortcut)
|
|
self.copy_file(fullsrc, fullpath)
|
|
+ (out, _) = self.copy_file(fullsrc, fullpath)
|
|
+ self.outfiles.append(out)
|
|
|
|
__all__ = ["build_shortcuts", "install_shortcuts"]
|