debian/0000755000000000000000000000000012012715017007162 5ustar debian/rules0000755000000000000000000000106212012715006010237 0ustar #!/usr/bin/make -f export PYTHONWARNINGS=d 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: dh_compress --exclude=.sg --exclude=.aif --exclude=.aiff debian/source/0000755000000000000000000000000012012715006010460 5ustar debian/source/format0000644000000000000000000000001412012715006011666 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000354312012715006011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SoundGrain Upstream-Contact: Olivier Bélanger Source: http://code.google.com/p/soundgrain/ Files: * Copyright: 2009 Olivier Bélanger License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-3'. Files: debian/* Copyright: 2012 Tiago Bortoletto Vaz License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/control0000644000000000000000000000157312012715006010571 0ustar Source: soundgrain Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Tiago Bortoletto Vaz DM-Upload-Allowed: yes Build-Depends: debhelper (>=7.0.50~), python-all (>= 2.6.6-3~) Standards-Version: 3.9.3 X-Python-Version: >= 2.6 Vcs-Browser: http://git.debian.org/?p=pkg-multimedia/soundgrain.git Vcs-Git: git://git.debian.org/git/pkg-multimedia/soundgrain.git Homepage: http://code.google.com/p/soundgrain/ Package: soundgrain Architecture: all Depends: python (>= 2.6), python-wxgtk2.8, python-pyo, ${misc:Depends} Description: Graphical interface to control granular sound synthesis modules Soundgrain is a graphical interface where users can draw and edit trajectories to control granular sound synthesis. It is written in Python and WxPython and uses pyo as its audio engine. debian/changelog0000644000000000000000000000066112012715006011035 0ustar soundgrain (4.1.1-2) unstable; urgency=low * Changes arch to all and build-depends on python-all (>= 2.6.6-3~); * X-Python-Version is preferred, so using it now. Thanks to Luca Falavigna. -- Tiago Bortoletto Vaz Sun, 15 Jul 2012 22:56:39 -0400 soundgrain (4.1.1-1) unstable; urgency=low * Initial release. (Closes: #681611) -- Tiago Bortoletto Vaz Fri, 13 Jul 2012 17:48:36 -0600 debian/watch0000644000000000000000000000012012012715006010202 0ustar version=3 http://soundgrain.googlecode.com/files/SoundGrain__(.*)\-src.tar\.bz2 debian/patches/0000755000000000000000000000000012012715006010607 5ustar debian/patches/use-distutils.patch0000644000000000000000000000666212012715006014460 0ustar Description: Use distutils to comply with Debian standards I tried to patch it in a generic way, so I guess it'll be useful for upstream. Once accepted this patch goes away. Author: Tiago Bortoletto Vaz Last-Update: 2012-07-14 --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +import os +from distutils.core import setup + +setup( name = "soundgrain", + author = "Olivier Belanger", + author_email = "belangeo@gmail.com", + version = "4.1.1", + description = "A graphical interface to control granular sound synthesis modules.", + url = "http://code.google.com/p/soundgrain/", + 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'], + } + ) --- a/SoundGrain.py +++ b/SoundGrain.py @@ -25,14 +25,14 @@ import wx.richtext as rt from types import ListType -from Resources.constants import * -from Resources.audio import * -from Resources.Modules import * +from soundgrain.Resources.constants import * +from soundgrain.Resources.audio import * +from soundgrain.Resources.Modules import * from pyolib._wxwidgets import ControlSlider, VuMeter, Grapher, BACKGROUND_COLOUR -from Resources.Trajectory import Trajectory -from Resources.FxBall import FxBall -from Resources.MidiSettings import MidiSettings -from Resources.splash import SoundGrainSplashScreen +from soundgrain.Resources.Trajectory import Trajectory +from soundgrain.Resources.FxBall import FxBall +from soundgrain.Resources.MidiSettings import MidiSettings +from soundgrain.Resources.splash import SoundGrainSplashScreen SCREEN_SIZE = None --- a/Resources/MidiSettings.py +++ b/Resources/MidiSettings.py @@ -20,8 +20,8 @@ import wx, sys from pyolib._wxwidgets import ControlSlider -from constants import BACKGROUND_COLOUR, ensureNFD, toSysEncoding -from Resources.audio import checkForMidiDrivers +from soundgrain.Resources.constants import BACKGROUND_COLOUR, ensureNFD, toSysEncoding +from soundgrain.Resources.audio import checkForMidiDrivers class MidiSettings(wx.Frame): def __init__(self, parent, surface, sg_audio, miDriver): --- a/Resources/Trajectory.py +++ b/Resources/Trajectory.py @@ -20,7 +20,7 @@ """ import wx from math import sin, pi, sqrt, floor -from Resources.Biquad_Filter import BiquadLP +from soundgrain.Resources.Biquad_Filter import BiquadLP def chooseColour(i, numlines=24): def clip(x): --- a/Resources/constants.py +++ b/Resources/constants.py @@ -17,7 +17,7 @@ along with SoundGrain. If not, see . """ -import os, sys, unicodedata +import os, sys, unicodedata, soundgrain from types import UnicodeType reload(sys) @@ -38,7 +38,7 @@ spindex = currentw.index('/SoundGrain.app') os.chdir(currentw[:spindex]) else: - RESOURCES_PATH = os.path.join(os.getcwd(), 'Resources') + RESOURCES_PATH = soundgrain.Resources.__path__[0] 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 @@ + + debian/patches/series0000644000000000000000000000002412012715006012020 0ustar use-distutils.patch debian/compat0000644000000000000000000000000212012715006010356 0ustar 7 debian/examples0000644000000000000000000000001312012715006010713 0ustar examples/*