[proaudio] New ebuild(s): media-sound/jack_mixer-2 and media-libs/pylash-3_pre |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Finally, the ebuilds for jack_mixer and pylash (a dependency of jack_mixer)!
Jack_mixer was a real bitch (sorry) to get to cooperate with portage... It took
me the *whole* evening...
Please use Dominique's media-libs/phat-9999 and media-libs/pyphat-9999 with
these, you need to add the following to /etc/portage/package.keywords:
~media-libs/phat-9999 -*
~media-libs/pyphat-9999 -*
The included patch goes to jack_mixer/files/
JR
--
| me@home ~$whoami ^ ^ | "Trust me, I know what I'm doing!" |
| Jouni 'Mad Max' Rinne ('x') | - Sledge Hammer |
| me@home ~$man woman C " " | -------[ph34r t3h p3Ngu1n]-------- |
| Segmentation fault (core dumped) | :: Last.fm user ID: l33tmmx :: |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils eutils
IUSE=""
DESCRIPTION="Python bindings for LASH."
HOMEPAGE="http://nedko.arnaudov.name/soft/pylash/"
MY_P="${P/3_pre/pre-3}"
SRC_URI="http://nedko.arnaudov.name/soft/pylash/${MY_P}.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
S=${WORKDIR}/${MY_P}
# Not sure about the required swig version, report if 1.3.25 doesn't work
DEPEND="dev-lang/python
>=dev-lang/swig-1.3.25
>=media-sound/lash-0.5.0"
pkg_setup() {
if ! built_with_use swig python ; then
eerror "Please re-emerge swig with USE='python'"
die
fi
}
src_compile() {
emake || die
}
src_install() {
python_version
insinto /usr/lib/python${PYVER}/site-packages
doins lash.py
insopts -m0755
doins _lash.so
}
pkg_postrm() {
python_mod_cleanup
}
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils gnome2
IUSE=""
RESTRICT="nomirror"
DESCRIPTION="JACK audio mixer using GTK2 interface."
HOMEPAGE="http://home.gna.org/jackmixer/"
SRC_URI="http://download.gna.org/jackmixer/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
# Not sure about the required swig version, report if 1.3.25 doesn't work
DEPEND="media-sound/jack-audio-connection-kit
>=dev-lang/swig-1.3.25
dev-python/pygtk
dev-python/fpconst
>=dev-python/pyxml-0.8.4
dev-python/gnome-python
media-libs/pylash
media-libs/pyphat"
pkg_setup() {
if ! built_with_use swig python ; then
eerror "Please re-emerge swig with USE='python'"
die
fi
}
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}-destdir.patch
}
src_compile() {
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
dosym /usr/share/jack_mixer/jack_mixer.py /usr/bin/jack_mixer
dodoc AUTHORS CHANGES README
}
pkg_postinst() {
gnome2_pkg_postinst
}
pkg_postrm() {
gnome2_pkg_postrm
}
diff -Naur jack_mixer-2-orig/GNUmakefile jack_mixer-2/GNUmakefile
--- jack_mixer-2-orig/GNUmakefile 2007-01-08 15:49:21.000000000 +0200
+++ jack_mixer-2/GNUmakefile 2007-01-15 21:34:47.000000000 +0200
@@ -16,7 +16,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
# Install prefix
-INSTALL_PREFIX=/usr
+PREFIX=/usr
+INSTALL=/usr/bin/install
# Where to install GConf schema, this must match the way GConf is configured
INSTALL_GCONF_SCHEMAS_DIR=/etc/gconf/schemas
@@ -46,14 +47,15 @@
test: _jack_mixer_c.so
@./test.py
-FILES = _jack_mixer_c.so jack_mixer_c.py abspeak.py channel.py gui.py jack_mixer.py meter.py scale.py serialization.py serialization_xml.py slider.py jack_mixer.glade
+EXEFILES = _jack_mixer_c.so jack_mixer.py
+FILES = jack_mixer_c.py abspeak.py channel.py gui.py meter.py scale.py serialization.py serialization_xml.py slider.py jack_mixer.glade
install: _jack_mixer_c.so
- mkdir -p $(INSTALL_PREFIX)/share/jack_mixer/
- cp $(FILES) $(INSTALL_PREFIX)/share/jack_mixer/
- ln -nfs $(INSTALL_PREFIX)/share/jack_mixer/jack_mixer.py $(INSTALL_PREFIX)/bin/jack_mixer
- cp jack_mixer.schemas $(INSTALL_GCONF_SCHEMAS_DIR)
- GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule $(INSTALL_GCONF_SCHEMAS_DIR)/jack_mixer.schemas
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/jack_mixer
+ $(INSTALL) -d $(DESTDIR)$(INSTALL_GCONF_SCHEMAS_DIR)
+ $(INSTALL) -m755 $(EXEFILES) $(DESTDIR)$(PREFIX)/share/jack_mixer
+ $(INSTALL) -m644 $(FILES) $(DESTDIR)$(PREFIX)/share/jack_mixer
+ $(INSTALL) -m644 jack_mixer.schemas $(DESTDIR)$(INSTALL_GCONF_SCHEMAS_DIR)
uninstall:
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule $(INSTALL_GCONF_SCHEMAS_DIR)/jack_mixer.schemas