diff options
Diffstat (limited to 'media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild')
-rw-r--r-- | media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild b/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild new file mode 100644 index 000000000000..a6c160904394 --- /dev/null +++ b/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild,v 1.1 2004/03/27 03:03:26 eradicator Exp $ + +DESCRIPTION="A SQL-based mp3-player frontend designed to work with Grip" +HOMEPAGE="http://www.nostatic.org/ddj/" +SRC_URI="http://www.nostatic.org/ddj/${P}.tar.gz" +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~alpha ~hppa ~sparc ~x86" +IUSE="lirc" +DEPEND="dev-db/mysql + lirc? ( app-misc/lirc ) + gnome-base/libghttp + media-libs/gdk-pixbuf + media-sound/grip + >=x11-libs/gtk+-1.2" + +src_compile() { + econf `use_enable lirc` || die + emake || die +} + +src_install() { + einstall + dodoc AUTHORS ChangeLog README +} + +pkg_postinst() { + einfo "To create the DDJ database run" + einfo " ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" +} + +pkg_config() { + local sql=`mktemp digitaldj.XXXXXXXXXX` || die "mktemp failed" + echo 'CREATE DATABASE IF NOT EXISTS ddj_mp3;' >> ${sql} + echo 'GRANT SELECT, INSERT, UPDATE, DELETE ON ddj_mp3.* TO ddj@localhost;' >> ${sql} + echo 'USE ddj_mp3;' >> ${sql} + sed -e 's/^\(CREATE TABLE\)/\1 IF NOT EXISTS/g' ${ROOT}/usr/share/digitaldj/0-2.sql >> ${sql} + less ${sql} + echo "Type in your MySQL root password:" + mysql -u root -p < ${sql} + rm -f ${sql} +} |