Home
Lrg screenshots
- Details
- Written by Pham Ngoc Hai
I've got a few screenshots of LRG, the code will be uploaded soon.
vhba 1.1.0 ebuild
- Details
- Written by Pham Ngoc Hai
cdemu 1.1.0 has been released a few days ago. They added a bash script in vhba module to test the kernel version, so no patch is needed anymore.
For the other packages, please take a look at my overlay.
==========
Updated July 18th 2008:
Fixed detecting kernel problem
==========
[code]# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit linux-info linux-mod eutils
DESCRIPTION="VHBA module provides Virtual (SCSI) Host Bus Adapter \
for the cdemu suite"
HOMEPAGE="http://cdemu.org"
SRC_URI="mirror://sourceforge/cdemu/vhba-module-${PV}.tar.bz2"
LICENSE="GPL-V2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~hppa ~ppc"
IUSE=""
DEPEND=">=virtual/linux-sources-2.6.19"
RDEPEND=""
S="${WORKDIR}/vhba-module-${PV}"
MODULE_NAMES="vhba(block:${S})"
BUILD_TARGETS="all"
pkg_setup() {
CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG"
#check_extra_config
linux-mod_pkg_setup
BUILD_PARAMS="KDIR=${KV_DIR}"
#linux-mod_pkg_setup
}
src_compile() {
linux-mod_src_compile || die "Error: building module failed!"
}
src_install() {
KV_OBJ="ko"
linux-mod_src_install || die "Error: installing module failed!"
UDEV_RULES="/etc/udev/rules.d/70-vhba.rules"
einfo "Generating UDEV-rules ..."
mkdir -p "${D}"/${UDEV_RULES%/*}
echo -e "# do not edit this file, it will be overwritten on update\n#" \
> "${D}"/${UDEV_RULES}
echo -e "KERNEL==\"vhba_ctl\", NAME=\"%k\", MODE=\"0660\", OWNER=\"root\",GROUP=\"cdemu\"" >> "${D}"/${UDEV_RULES}
}
pkg_postinst() {
einfo "Generating cdemu group ..."
enewgroup cdemu
elog "Don't forget to add yourself to the cdemu group "
elog "if you want to be able to use virtual cdemu devices."
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}[/code]
jack-audio-connection-kit-9999.ebuild
- Details
- Written by Pham Ngoc Hai
[code]# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic eutils multilib subversion autotools
#NETJACK="netjack-0.12"
JACKDBUS="jackpatches-0.11"
RESTRICT="nostrip nomirror"
DESCRIPTION="A low-latency audio server"
HOMEPAGE="http://www.jackaudio.org"
#SRC_URI="netjack? ( mirror://sourceforge/netjack/${NETJACK}.tar.bz2 )
SRC_URI="dbus? ( http://dl.sharesource.org/jack/${JACKDBUS}.tar.bz2 )"
ESVN_REPO_URI="http://subversion.jackaudio.org/jack/trunk/jack"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="3dnow altivec alsa caps coreaudio doc debug jack-tmpfs mmx oss sndfile sse
jackmidi freebob dbus"
RDEPEND="dev-util/pkgconfig
netjack? ( !media-sound/netjack )
sndfile? ( >=media-libs/libsndfile-1.0.0 )
sys-libs/ncurses
caps? ( sys-libs/libcap )
alsa? ( >=media-libs/alsa-lib-0.9.1 )
jackmidi? ( media-libs/alsa-lib )
freebob? ( sys-libs/libfreebob )
!media-sound/jack-audio-connection-kit-svn"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
pkg_setup() {
if ! use sndfile ; then
ewarn "sndfile not in USE flags. jack_rec will not be installed!"
fi
if use caps; then
if [[ "${KV:0:3}" == "2.4" ]]; then
einfo "will build jackstart for 2.4 kernel"
else
einfo "using compatibility symlink for jackstart"
fi
fi
}
src_unpack() {
subversion_src_unpack
# use netjack && cd ${WORKDIR} && unpack ${NETJACK}.tar.bz2
use dbus && cd ${WORKDIR} && unpack ${JACKDBUS}.tar.bz2
cd ${S}
# epatch ${FILESDIR}/${PN}-transport.patch
# jack transport patch from Torben Hohn
epatch "${FILESDIR}/jack-transport-start-at-zero-fix.diff"
# dbus patches from Nedko Arnaudov
if use dbus; then
#epatch "../${JACKDBUS}/dbus.patch"
epatch "../${JACKDBUS}/watchdog-fix-on-driver-load-fail.patch"
fi
sed -i -e "s:include/nptl/:include/:g" configure.ac || die
eautoreconf
sed -i "s/^CFLAGS=\$JACK_CFLAGS/CFLAGS=\"\$JACK_CFLAGS $(get-flag -march)\"/" configure || die
}
src_compile() {
local myconf
use doc && myconf="--with-html-dir=/usr/share/doc/${PF}"
if use jack-tmpfs; then
myconf="${myconf} --with-default-tmpdir=/dev/shm"
else
myconf="${myconf} --with-default-tmpdir=/var/run/jack"
fi
if use dbus; then
myconf="${myconf} --enable-dbus --enable-pkg-config-dbus-service-dir"
fi
if use userland_Darwin ; then
append-flags -fno-common
use altivec && append-flags -force_cpusubtype_ALL \
-maltivec -mabi=altivec -mhard-float -mpowerpc-gfxopt
fi
use sndfile && \
export SNDFILE_CFLAGS="-I/usr/include" \
export SNDFILE_LIBS="-L/usr/$(get_libdir) -lsndfile"
econf \
$(use_enable altivec) \
$(use_enable alsa) \
$(use_enable caps capabilities) $(use_enable caps stripped-jackd) \
$(use_enable coreaudio) \
$(use_enable debug) \
$(use_enable doc html-docs) \
$(use_enable mmx) \
$(use_enable oss) \
$(use_enable sse) \
$(use_enable 3dnow dynsimd) \
$(use_enable jackmidi) \
--disable-portaudio \
${myconf} || die "configure failed"
emake || die "compilation failed"
if use caps && [[ "${KV:0:3}" == "2.4" ]]; then
einfo "Building jackstart for 2.4 kernel"
cd ${S}/jackd
emake jackstart || die "jackstart build failed."
fi
#if use netjack; then
# cd "${WORKDIR}/${NETJACK}"
# scons jack_source_dir=${S}
#fi
}
src_install() {
make DESTDIR=${D} datadir=/usr/share/doc install || die
if use caps; then
if [[ "${KV:0:3}" == "2.4" ]]; then
cd ${S}/jackd
dobin jackstart
else
dosym /usr/bin/jackd /usr/bin/jackstart
fi
fi
if ! use jack-tmpfs; then
keepdir /var/run/jack
chmod 4777 ${D}/var/run/jack
fi
if use doc; then
mv ${D}/usr/share/doc/${PF}/reference/html \
${D}/usr/share/doc/${PF}/
insinto /usr/share/doc/${PF}
doins -r ${S}/example-clients
else
rm -rf ${D}/usr/share/doc
fi
rm -rf ${D}/usr/share/doc/${PF}/reference
}[/code]
audacious-plugins mercurial hg ebuild (audacious-9999)
- Details
- Written by Pham Ngoc Hai
Updated 23th Oct, fixed the hg repo
=================================
Audacious-plugins mercurial hg ebuild
[code]# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
# /var/cvsroot/gentoo-x86/media-plugins/audacious-plugins/audacious-plugins-9999.ebuild,v 1.2 2008/02/21 16:16:17 chainsaw Exp $
inherit eutils flag-o-matic mercurial
MY_P="${P/_/-}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Audacious Player - Your music, your way, no exceptions"
HOMEPAGE="http://audacious-media-player.org/"
EHG_REPO_URI="http://hg.atheme.org/audacious-plugins"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="aac adplug alsa arts chardet dbus esd flac gnome jack lirc modplug mp3 mtp musepack nls oss pulseaudio sdl sid sndfile sse2 timidity tta vorbis wavpack wma"
RDEPEND="app-arch/unzip
>=dev-libs/libcdio-0.79-r1
>=dev-libs/dbus-glib-0.60
dev-libs/libxml2
>=gnome-base/libglade-2.3.1
>=media-libs/libcddb-1.2.1
>=media-sound/audacious-9999
>=net-misc/neon-0.26.4
>=x11-libs/gtk+-2.10
adplug? ( >=dev-cpp/libbinio-1.4 )
alsa? ( >=media-libs/alsa-lib-1.0.13 )
arts? ( kde-base/arts )
dbus? ( >=dev-libs/dbus-glib-0.60 )
esd? ( >=media-sound/esound-0.2.30 )
flac? ( >=media-libs/libvorbis-1.0
>=media-libs/flac-1.2.1-r1 )
jack? ( >=media-libs/bio2jack-0.4
media-sound/jack-audio-connection-kit )
lirc? ( app-misc/lirc )
mp3? ( media-libs/libmad )
mtp? ( >=media-libs/libmtp-0.2.5-r1 )
musepack? ( media-libs/libmpcdec media-libs/taglib )
pulseaudio? ( >=media-sound/pulseaudio-0.9.3 )
sdl? ( >=media-libs/libsdl-1.2.5 )
sid? ( media-libs/libsidplay )
sndfile? ( >=media-libs/libsndfile-1.0.17-r1 )
timidity? ( media-sound/timidity++ )
tta? ( media-libs/libid3tag )
vorbis? ( >=media-libs/libvorbis-1.0
>=media-libs/libogg-1.0 )
wavpack? ( >=media-sound/wavpack-4.31 )
wma? ( >=media-libs/libmms-0.3 )"
DEPEND="${RDEPEND}
nls? ( dev-util/intltool )
>=dev-util/pkgconfig-0.9.0"
mp3_warning() {
if ! useq mp3 ; then
ewarn "MP3 support is optional, you may want to enable the mp3 USE-flag"
fi
}
src_compile() {
mp3_warning
cd ${WORKDIR}/${PN}
./autogen.sh
econf \
--enable-dbus \
--enable-cdaudio-ng \
--enable-neon \
--disable-projectm \
--disable-projectm-1.0 \
$(use_enable aac) \
$(use_enable adplug) \
$(use_enable alsa) \
$(use_enable arts) \
$(use_enable chardet) \
$(use_enable esd) \
$(use_enable flac) \
$(use_enable jack) \
$(use_enable gnome gnomeshortcuts) \
$(use_enable lirc) \
$(use_enable mp3) \
$(use_enable modplug) \
$(use_enable musepack) \
$(use_enable mtp mtp_up) \
$(use_enable nls) \
$(use_enable oss) \
$(use_enable pulseaudio pulse) \
$(use_enable sdl paranormal) \
$(use_enable sid) \
$(use_enable sndfile) \
$(use_enable sse2) \
$(use_enable timidity) \
$(use_enable tta) \
$(use_enable vorbis) \
$(use_enable wavpack) \
$(use_enable wma) \
|| die
emake || die "make failed"
}
src_install() {
cd ${WORKDIR}/${PN}
make DESTDIR="${D}" install || die
dodoc AUTHORS NEWS
}
pkg_postinst() {
mp3_warning
}[/code]
audacious mercurial hg ebuild (audacious-9999)
- Details
- Written by Pham Ngoc Hai
Updated 23th Oct, fixed the hg repo
=================================
This ebuild pulls the audacious source code from hg repo.
[code]# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/audacious/audacious-9999.ebuild,v 1.1 2008/02/02 17:56:56 chainsaw Exp $
inherit flag-o-matic mercurial
MY_P="${P/_/-}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Audacious Player - Your music, your way, no exceptions"
HOMEPAGE="http://audacious-media-player.org/"
EHG_REPO_URI="http://hg.atheme-project.org/audacious"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="altivec chardet nls libsamplerate sse2"
RDEPEND=">=dev-libs/dbus-glib-0.60
libsamplerate? ( media-libs/libsamplerate )
>=dev-libs/libmcs-0.7.0
>=dev-libs/libmowgli-0.6.1
dev-libs/libxml2
>=gnome-base/libglade-2.3.1
>=x11-libs/gtk+-2.10
>=dev-libs/glib-2.14"
DEPEND="${RDEPEND}
!media-plugins/audacious-plugins-ugly
>=dev-util/pkgconfig-0.9.0
nls? ( dev-util/intltool )"
PDEPEND=">=media-plugins/audacious-plugins-9999"
src_compile() {
cd ${WORKDIR}/${PN}
./autogen.sh
econf \
--enable-dbus \
$(use_enable altivec) \
$(use_enable chardet) \
$(use_enable nls) \
$(use_enable sse2) \
$(use_enable libsamplerate samplerate) \
|| die
emake || die "make failed"
}
src_install() {
cd ${WORKDIR}/${PN}
make DESTDIR="${D}" install || die
dodoc AUTHORS NEWS README
dodoc "${WORKDIR}"/README
}
pkg_postinst() {
elog "Note that you need to recompile *all* third-party plugins for Audacious 9999"
elog "Plugins compiled against 1.3 will not be loaded."
}[/code]
Page 5 of 11