[SCM] soundgrain/master: First functional package :)

tiago at users.alioth.debian.org tiago at users.alioth.debian.org
Sat Jul 14 18:07:48 UTC 2012


The following commit has been merged in the master branch:
commit 418349f38d6fd201026dc74a88ae6106b4505683
Author: Tiago Bortoletto Vaz <tiago at debian.org>
Date:   Sat Jul 14 12:07:39 2012 -0600

    First functional package :)

diff --git a/debian/patches/use-distutils.patch b/debian/patches/use-distutils.patch
index 8dd2fcc..57dc1f1 100644
--- a/debian/patches/use-distutils.patch
+++ b/debian/patches/use-distutils.patch
@@ -1,14 +1,11 @@
 --- /dev/null
 +++ b/setup.py
-@@ -0,0 +1,32 @@
+@@ -0,0 +1,20 @@
 +# -*- coding: utf-8 -*-
 +
 +import os
 +from distutils.core import setup
 +
-+#misc_files = [('soundgrain/Resources', ['Resources/new_soundgrain_file.sg', 'Resources/SoundGrainDocIcon.icns', 'Resources/SoundGrainDocIcon.ico', 'Resources/SoundGrain.icns', 'Resources/SoundGrain.ico', 'Resources/SoundGrainSplash.png'])]
-+#misc_files += [file for file in os.listdir('Resources/images') if os.path.isfile(file)]
-+
 +setup(  name = "soundgrain",
 +        author = "Olivier Belanger",
 +        author_email = "belangeo at gmail.com",
@@ -18,20 +15,11 @@
 +        license = "GPLv3",
 +        package_dir = { 'soundgrain': '' },
 +        packages = ['soundgrain.Resources'],
++        py_modules = ['soundgrain.__init__'], #workaround to have Resources under soundgrain dir
 +        scripts = ['SoundGrain.py'],
 +        package_data={
 +            'soundgrain.Resources': ['images/*', 'new_soundgrain_file.sg', 'SoundGrainDocIcon.icns', 'SoundGrainDocIcon.ico', 'SoundGrain.icns', 'SoundGrain.ico', 'SoundGrainSplash.png'],
-+        },
-+#        package_data = {'soundgrain': ['Resources/images/*.png']}
-+#        install_path = 'soundgrain'
-+#        entry_points = {
-+#            'console_scripts': [
-+#                'soundgrain = soundgrain.SoundGrain',
-+#            ],
-+#            'gui_scripts': [
-+#                'sg = soundgrain.SoundGrain',
-+#            ]
-+#        }
++        }
 +    )
 --- a/SoundGrain.py
 +++ b/SoundGrain.py
@@ -101,3 +89,8 @@
  
  if not os.path.isdir(RESOURCES_PATH) and sys.platform == "win32":
      RESOURCES_PATH = os.path.join(os.getenv("ProgramFiles"), "SoundGrain", "Resources")
+--- /dev/null
++++ b/__init__.py
+@@ -0,0 +1,2 @@
++
++
diff --git a/debian/rules b/debian/rules
index 2850daa..3ec0ff5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,16 @@ buildvers := $(shell pyversions -rv)
 %:
 	dh $@ --with python2
 
+override_dh_auto_install:
+	set -e; \
+	for i in $(buildvers); do \
+		python$$i ./setup.py install --skip-build --skip-build --root $(CURDIR)/debian/soundgrain --install-layout=deb; \
+	done
+	mv  $(CURDIR)/debian/soundgrain/usr/bin/SoundGrain.py  $(CURDIR)/debian/soundgrain/usr/bin/soundgrain
+
 override_dh_auto_clean:
 	find . -name '*.pyc' -delete
 	rm -rf build
+
+# not to run
+override_dh_compress:

-- 
soundgrain packaging



More information about the pkg-multimedia-commits mailing list