Version bump
authorAlexis Ballier <aballier@gentoo.org>
Sun, 25 Mar 2007 18:44:58 +0000 (18:44 +0000)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 25 Mar 2007 18:44:58 +0000 (18:44 +0000)
Package-Manager: portage-2.1.2.2

media-sound/prokyon3/ChangeLog
media-sound/prokyon3/Manifest
media-sound/prokyon3/files/digest-prokyon3-0.9.6 [new file with mode: 0644]
media-sound/prokyon3/files/prokyon3-0.9.6-asneeded.patch [new file with mode: 0644]
media-sound/prokyon3/files/prokyon3-0.9.6-cflags.patch [new file with mode: 0644]
media-sound/prokyon3/files/prokyon3-0.9.6-flac113.patch [new file with mode: 0644]
media-sound/prokyon3/files/prokyon3-0.9.6-qdir.patch [new file with mode: 0644]
media-sound/prokyon3/prokyon3-0.9.6.ebuild [new file with mode: 0644]

index 8d98af829ab5b489b07f17e2c010cb8e3c442acd..862e7ea593c2d46ada2aaaa67595ca25ce78dd23 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for media-sound/prokyon3
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/prokyon3/ChangeLog,v 1.21 2007/01/05 17:45:55 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/prokyon3/ChangeLog,v 1.22 2007/03/25 18:44:58 aballier Exp $
+
+*prokyon3-0.9.6 (25 Mar 2007)
+
+  25 Mar 2007; Alexis Ballier <aballier@gentoo.org>
+  +files/prokyon3-0.9.6-asneeded.patch, +files/prokyon3-0.9.6-cflags.patch,
+  +files/prokyon3-0.9.6-flac113.patch, +files/prokyon3-0.9.6-qdir.patch,
+  +prokyon3-0.9.6.ebuild:
+  Version bump
 
   05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> prokyon3-0.9.4.ebuild,
   prokyon3-0.9.4-r1.ebuild:
index 9ee2381c7b24fa50508de4bedfc741286ae31373..494aef146a28d1c01ea90df87c9e6f8e4b6546c2 100644 (file)
@@ -9,8 +9,25 @@ AUX prokyon3-0.9.4-gcc41.patch 1409 RMD160 9bf460cdd8f00b90142d5b2289735c9107f9f
 MD5 5962bc987ab4fbc899ad428bb646683e files/prokyon3-0.9.4-gcc41.patch 1409
 RMD160 9bf460cdd8f00b90142d5b2289735c9107f9f591 files/prokyon3-0.9.4-gcc41.patch 1409
 SHA256 8d8763a994789698bad338fa587aff72c4a2b05d1fbe5f38c48b4632d95afa36 files/prokyon3-0.9.4-gcc41.patch 1409
+AUX prokyon3-0.9.6-asneeded.patch 3997 RMD160 13b92333b085421ae9946ff2f86361364959d1d9 SHA1 568410e96f46b778b2ea4e5a49ba2cf8f6eace75 SHA256 a9b3b25d06fb5e76de24e27d7dcdd7acce9b647df159c0a6b281f878ccb9d8b4
+MD5 c81fd6e6b2c766394ea63e466ad526a3 files/prokyon3-0.9.6-asneeded.patch 3997
+RMD160 13b92333b085421ae9946ff2f86361364959d1d9 files/prokyon3-0.9.6-asneeded.patch 3997
+SHA256 a9b3b25d06fb5e76de24e27d7dcdd7acce9b647df159c0a6b281f878ccb9d8b4 files/prokyon3-0.9.6-asneeded.patch 3997
+AUX prokyon3-0.9.6-cflags.patch 419 RMD160 ca8819277ec2600d847fee5de3273bf035867a78 SHA1 5f4c33cd351c3adf78b9a09f2e62a55389f3431e SHA256 d116e565f93349ead8d36139abc0b9897154f347a1f15f3f75d346e17740bbf4
+MD5 dc712bcdcf6da91e12e4fb48f59fcf50 files/prokyon3-0.9.6-cflags.patch 419
+RMD160 ca8819277ec2600d847fee5de3273bf035867a78 files/prokyon3-0.9.6-cflags.patch 419
+SHA256 d116e565f93349ead8d36139abc0b9897154f347a1f15f3f75d346e17740bbf4 files/prokyon3-0.9.6-cflags.patch 419
+AUX prokyon3-0.9.6-flac113.patch 2879 RMD160 d15689456dfd3e2f16bb21ad57e92582513996c8 SHA1 a252f1098aa440d54e78552fd5d50b96beec96b3 SHA256 72d276e9cd50b202a04062abc5213013572e7971a7dba2e7dc48be3e1be693d5
+MD5 ad59444a492d1bbabf27994f08bfb8fb files/prokyon3-0.9.6-flac113.patch 2879
+RMD160 d15689456dfd3e2f16bb21ad57e92582513996c8 files/prokyon3-0.9.6-flac113.patch 2879
+SHA256 72d276e9cd50b202a04062abc5213013572e7971a7dba2e7dc48be3e1be693d5 files/prokyon3-0.9.6-flac113.patch 2879
+AUX prokyon3-0.9.6-qdir.patch 360 RMD160 3851a3a3e23836fd943f7b8fd07c3fd1ffa19b93 SHA1 ff8c2b01436d7e048586bcacdf1c302b6fc97ea7 SHA256 31950491ef9360031976efeb2a84131c0a3aed649692681791c8355197b3dcad
+MD5 17c4057b3c467be9989997fbb104fc57 files/prokyon3-0.9.6-qdir.patch 360
+RMD160 3851a3a3e23836fd943f7b8fd07c3fd1ffa19b93 files/prokyon3-0.9.6-qdir.patch 360
+SHA256 31950491ef9360031976efeb2a84131c0a3aed649692681791c8355197b3dcad files/prokyon3-0.9.6-qdir.patch 360
 DIST prokyon3-0.9.2.tar.gz 593348 RMD160 c2b93a3b66f1dd84b83475b37e644a07b1f3634f SHA1 0291dc2e6a970f927c2995eddd481de8d5949635 SHA256 1053ab6c5a01410d18d7fd402d6ef1b56197d6964e6c1cc0ce8d85b20cad7d17
 DIST prokyon3-0.9.4.tar.gz 1230467 RMD160 49f00440de9698def2a5f13c2405d354abc47f71 SHA1 a57b1ab8c3094e786b5f05b0cc7637e57042971a SHA256 57e5e9d67a81e171120de7de8f70eca575d10cadacbddab76a2eaf9d025f61fa
+DIST prokyon3-0.9.6.tar.gz 1162620 RMD160 bf44315856ac04c5733832800e3aa951effc379d SHA1 73df4c075064a6a348f73a85e5ed1ad32f2c9285 SHA256 a5c9477b8f15e791860dcd7e7608dcfdc0cf423528a56525a3d20e4d6935cb6a
 EBUILD prokyon3-0.9.2.ebuild 1226 RMD160 1e307ac5fbe5284a0bdd427441f4297d2f15b10f SHA1 936679e110cef551e62b48870720159e3b833cce SHA256 8b3eb294fa8f390cd89f06b3b077354297d7ea0e2037869cd107f05f0b7b81c3
 MD5 870aa16c79f58483eae06db4fdc62533 prokyon3-0.9.2.ebuild 1226
 RMD160 1e307ac5fbe5284a0bdd427441f4297d2f15b10f prokyon3-0.9.2.ebuild 1226
@@ -23,10 +40,14 @@ EBUILD prokyon3-0.9.4.ebuild 2043 RMD160 29fe0cbc2f4e62db543026177c604b05552c2c6
 MD5 0cff0dc67d9b6fe3de1248e88f01ad25 prokyon3-0.9.4.ebuild 2043
 RMD160 29fe0cbc2f4e62db543026177c604b05552c2c61 prokyon3-0.9.4.ebuild 2043
 SHA256 485ad4e37a8174647186e36c285dfb0fd40a3039e9229e5c210f53b326678cbc prokyon3-0.9.4.ebuild 2043
-MISC ChangeLog 2713 RMD160 8cf384ddab9a7b9b5e71f71e8366761e9160df01 SHA1 03e44335db6b7471785bcf1fb51b975fd2d22cda SHA256 a00d8b06fdb2703483417c731598489e6b6905710183157aeabafc77c4c13ff2
-MD5 3345d88312f9138b435b68b3204fc893 ChangeLog 2713
-RMD160 8cf384ddab9a7b9b5e71f71e8366761e9160df01 ChangeLog 2713
-SHA256 a00d8b06fdb2703483417c731598489e6b6905710183157aeabafc77c4c13ff2 ChangeLog 2713
+EBUILD prokyon3-0.9.6.ebuild 2340 RMD160 125f3364e974a4c7aca85f4b079bab1bc58dc856 SHA1 7c3b6906a390ba6eb1b39a1a5b974b33ccc8afee SHA256 2f88da84ab3c91deaa80e61f5dd686e776a79a0a7d43d294096eef8dbfa98f82
+MD5 b1d22a390ba219a6759dadd077cc211b prokyon3-0.9.6.ebuild 2340
+RMD160 125f3364e974a4c7aca85f4b079bab1bc58dc856 prokyon3-0.9.6.ebuild 2340
+SHA256 2f88da84ab3c91deaa80e61f5dd686e776a79a0a7d43d294096eef8dbfa98f82 prokyon3-0.9.6.ebuild 2340
+MISC ChangeLog 2986 RMD160 9838d273e1f0c5b5d399cbfd3d0c976ea567dd52 SHA1 99c6f0200e919930142f06bc0644b66d7fce347c SHA256 66f2b3df854e583261740973cadfd00d4c5d7faafe0023aa5ff6c206d8825503
+MD5 d7cf37e9dde628c3383b4784db6b1fc7 ChangeLog 2986
+RMD160 9838d273e1f0c5b5d399cbfd3d0c976ea567dd52 ChangeLog 2986
+SHA256 66f2b3df854e583261740973cadfd00d4c5d7faafe0023aa5ff6c206d8825503 ChangeLog 2986
 MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
 MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
@@ -40,10 +61,13 @@ SHA256 c2b22bb5f77b13923800ad05684da8ca4f288bca571c13da8efd9f14664dfbb6 files/di
 MD5 0ff9a30951d81fe3a581aed9c5ba8d72 files/digest-prokyon3-0.9.4-r1 247
 RMD160 1f49fa887d6165f0f0d7dfdb48397034a7955e6c files/digest-prokyon3-0.9.4-r1 247
 SHA256 c2b22bb5f77b13923800ad05684da8ca4f288bca571c13da8efd9f14664dfbb6 files/digest-prokyon3-0.9.4-r1 247
+MD5 026887a263781010197f454535142eb5 files/digest-prokyon3-0.9.6 247
+RMD160 ba2bb9239a9bc2e8398224bb7906651e7f7ee474 files/digest-prokyon3-0.9.6 247
+SHA256 e736af65d13767bdd01dba779d55db1f638684d499414a131a4cd5f2b720746e files/digest-prokyon3-0.9.6 247
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.1 (GNU/Linux)
+Version: GnuPG v2.0.3 (GNU/Linux)
 
-iD8DBQFFno7nAiZjviIA2XgRAtf5AJ98MigYlBv4rID6O8eg2LZBpU48jwCg5IrE
-kBb7IxhIQInnYwg28/t+x7k=
-=sWsY
+iD8DBQFGBsMuvFcC4BYPU0oRAuVVAJ0TVggrhcVOCLcvCXIoXVu3egK4HQCeI/Vq
+13JkGLWEEw24WpUT5u73gjc=
+=YW/p
 -----END PGP SIGNATURE-----
diff --git a/media-sound/prokyon3/files/digest-prokyon3-0.9.6 b/media-sound/prokyon3/files/digest-prokyon3-0.9.6
new file mode 100644 (file)
index 0000000..f651178
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 c4b3d222a518ff82af66ea4aba458f55 prokyon3-0.9.6.tar.gz 1162620
+RMD160 bf44315856ac04c5733832800e3aa951effc379d prokyon3-0.9.6.tar.gz 1162620
+SHA256 a5c9477b8f15e791860dcd7e7608dcfdc0cf423528a56525a3d20e4d6935cb6a prokyon3-0.9.6.tar.gz 1162620
diff --git a/media-sound/prokyon3/files/prokyon3-0.9.6-asneeded.patch b/media-sound/prokyon3/files/prokyon3-0.9.6-asneeded.patch
new file mode 100644 (file)
index 0000000..d69f0c2
--- /dev/null
@@ -0,0 +1,106 @@
+Index: prokyon3-0.9.6/configure.in
+===================================================================
+--- prokyon3-0.9.6.orig/configure.in
++++ prokyon3-0.9.6/configure.in
+@@ -29,6 +29,8 @@ AC_LANG(C++)
+ # User supplied includes and lib path.
+ ########################################
++LIBSADDED=""
++
+ AC_ARG_WITH(other-includes,[  --with-other-includes=PATH  additional path where includes are installed (optional)],
+         other_includes="$withval",other_includes="")
+@@ -36,7 +38,7 @@ AC_ARG_WITH(other-libs,[  --with-other-l
+         other_libs="$withval",other_libs="")
+ if test x$other_libs != x ; then
+-    LDFLAGS="$LDFLAGS -L$other_libs"
++    LIBSADDED="$LIBSADDED -L$other_libs"
+ fi
+ if test x$other_includes != x ; then
+     CPPFLAGS="$CPPFLAGS -I$other_includes"
+@@ -127,7 +129,7 @@ if test x"$ac_use_taglib" = xyes; then
+       AC_CHECK_PROG([taglib_config],[taglib-config],[yes],[no])
+       if test x"$taglib_config" = xyes; then 
+               AC_DEFINE([HAVE_TAG],1,[Taglib libs presence])
+-              LDFLAGS="$LDFLAGS `taglib-config --libs`" 
++              LIBSADDED="$LIBSADDED `taglib-config --libs`" 
+               CPPFLAGS="$CPPFLAGS `taglib-config --cflags`" 
+               taglib_sup=yes
+ #let's not assume libtag is present....
+@@ -229,7 +231,7 @@ AC_ARG_WITH([musicbrainz],
+ mbrainz_sup=no
+ if test x"$ac_use_mbrainz" = xyes; then
+       AC_MSG_NOTICE([======Checking libmusicbrainz  ========])
+-      AC_CHECK_LIB(musicbrainz,main,[LDFLAGS="$LDFLAGS -lmusicbrainz"],
++      AC_CHECK_LIB(musicbrainz,main,[LIBSADDED="$LIBSADDED -lmusicbrainz"],
+       [AC_MSG_FAILURE([******* libmusicbrainz library  required.  ********])])
+       AC_DEFINE([HAVE_LIBMUSICBRAINZ],1,[Musicbrainz libs OK])
+       mbrainz_sup=yes
+@@ -256,7 +258,7 @@ if test x$with_ogg = "x"yes && test x"$m
+       AC_MSG_NOTICE([======Checking if Ogg libraries are OK ========])
+       AC_CHECK_LIB(ogg, ogg_sync_init,[have_ogg=yes],
+           [AC_MSG_FAILURE([******* libogg library  required.  ********])])
+-      LDFLAGS="$LDFLAGS -logg"
++      LIBSADDED="$LIBSADDED -logg"
+ fi   
+ if test x$with_ogg = "x"yes && test x"$mbrainz_sup" = xyes; then
+@@ -265,7 +267,7 @@ if test x$with_ogg = "x"yes && test x"$m
+       AC_CHECK_LIB(vorbis, vorbis_info_init,[have_vorbis=yes],
+           [AC_MSG_FAILURE([******* libvorbis library  required.  ********])])
+-      LDFLAGS="$LDFLAGS -lvorbis -lvorbisfile"
++      LIBSADDED="$LIBSADDED -lvorbis -lvorbisfile"
+ fi
+ if test x"$have_ogg" = xyes; then 
+@@ -292,7 +294,7 @@ if test x$with_mad = "x"yes && test x"$m
+       AC_CHECK_LIB(mad,main,[mad_sup=yes],
+       [AC_MSG_FAILURE([******* libmad library  required.  ********])])
+       AC_DEFINE([HAVE_LIBMAD],1,[Mad lib OK])
+-      LDFLAGS="$LDFLAGS -lmad"
++      LIBSADDED="$LIBSADDED -lmad"
+ fi   
+ ########################################
+@@ -329,7 +331,7 @@ int main ()
+       ],[flac_sup=yes],[AC_MSG_FAILURE([******* libFLAC++ library  required.  ********])])
+       AC_MSG_RESULT([$flac_sup])
+-      LDFLAGS="$LDFLAGS -lFLAC++ -lFLAC"
++      LIBSADDED="$LIBSADDED -lFLAC++ -lFLAC"
+       AC_DEFINE([HAVE_FLAC],1,[Flac libs OK])
+ fi   
+@@ -441,7 +443,7 @@ if test x$ac_use_embedded = "xyes" ; the
+       
+       case "$MYSQL_libdir" in
+         /usr/lib) ;;
+-        *) LDFLAGS="$LDFLAGS -L${MYSQL_libdir}" ;;
++        *) LIBSADDED="$LIBSADDED -L${MYSQL_libdir}" ;;
+       esac
+       
+       AC_MSG_CHECKING([for MySQL include directory])
+@@ -505,6 +507,7 @@ rm -f temp$$
+ ########################################
+ ## Generate makefiles
+ ########################################
++AC_SUBST(LIBSADDED)
+ AC_CONFIG_FILES([Makefile src/Makefile intl/Makefile po/Makefile.in sql++/Makefile])
+ AC_OUTPUT
+Index: prokyon3-0.9.6/src/Makefile.am
+===================================================================
+--- prokyon3-0.9.6.orig/src/Makefile.am
++++ prokyon3-0.9.6/src/Makefile.am
+@@ -96,7 +96,7 @@ BUILT_SOURCES = $(prokyon3_MOC)
+ prokyon3_CXXFLAGS = $(QT_CXXFLAGS) -DQT_THREAD_SUPPORT  -DQT_NO_ASCII_CAST -DPREFIX=\"$(prefix)\" 
+-prokyon3_LDFLAGS = $(QT_GUILINK) $(QT_LDADD) $(ID3_LIBS)  @INTLLIBS@
++prokyon3_LDADD = $(QT_GUILINK) $(QT_LDADD) $(ID3_LIBS)  @INTLLIBS@ @LIBSADDED@
+ %.moc.cpp: %.h
+       $(MOC) -o $@ $<
diff --git a/media-sound/prokyon3/files/prokyon3-0.9.6-cflags.patch b/media-sound/prokyon3/files/prokyon3-0.9.6-cflags.patch
new file mode 100644 (file)
index 0000000..f7a8e23
--- /dev/null
@@ -0,0 +1,14 @@
+Index: prokyon3-0.9.6/configure.in
+===================================================================
+--- prokyon3-0.9.6.orig/configure.in
++++ prokyon3-0.9.6/configure.in
+@@ -23,9 +23,7 @@ AC_DEFINE_UNQUOTED([HAVE_LANGUAGE],["$AL
+ AC_PROG_CXX
+ AC_PROG_CC
+ AC_LANG(C++)
+-CXXFLAGS="-O0 -g3 $CXXFLAGS"
+ #CXXFLAGS="-O3"
+-CFLAGS=$CXXFLAGS
+ ########################################
+ # User supplied includes and lib path.
diff --git a/media-sound/prokyon3/files/prokyon3-0.9.6-flac113.patch b/media-sound/prokyon3/files/prokyon3-0.9.6-flac113.patch
new file mode 100644 (file)
index 0000000..76a6717
--- /dev/null
@@ -0,0 +1,69 @@
+Index: prokyon3-0.9.6/src/qmbflacfile.cpp
+===================================================================
+--- prokyon3-0.9.6.orig/src/qmbflacfile.cpp
++++ prokyon3-0.9.6/src/qmbflacfile.cpp
+@@ -33,6 +33,12 @@ Foundation, Inc., 59 Temple Place, Suite
+ #include <musicbrainz/mb_c.h>
+ #include <FLAC++/metadata.h>
++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
++#define LEGACY_FLAC
++#else
++#undef LEGACY_FLAC
++#endif
++
+ QMBFLACFile::QMBFLACFile()
+ : QMBFile(), FLAC::Decoder::File(), offset(0), decode_error(false) {
+     //we do nothing here.  we want to allow checking of return value,
+@@ -57,17 +63,27 @@ int QMBFLACFile::Extract(QString filenam
+     int lastslash = filename.findRev('/');
+     metadata.SetFileName(filename.right(filename.length() - lastslash - 1));
++#ifdef LEGACY_FLAC
+     //set the filename with the FLAC::Decoder::File class
+     set_filename(fullfilename.latin1());
++#endif
+     //tell the decoder to call the metadata callback on vorbis comments so we can get the metadata already stored in the file
+     set_metadata_respond(FLAC__METADATA_TYPE_VORBIS_COMMENT);
+     //Start reading the FLAC file
++#ifdef LEGACY_FLAC
+     FLAC__FileDecoderState state = init();
+     if (state != FLAC__FILE_DECODER_OK) {
+         qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", state, FLAC__FileDecoderStateString[state]);
++#else
++    FLAC__StreamDecoderState state;
++    FLAC__StreamDecoderInitStatus initstate = init(fullfilename.latin1());
++
++    if (initstate != FLAC__STREAM_DECODER_INIT_STATUS_OK) {
++        qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", initstate, FLAC__StreamDecoderStateString[initstate]);
++#endif
+         finish();
+         return -1;
+     }
+@@ -75,7 +91,11 @@ int QMBFLACFile::Extract(QString filenam
+     //read through all the metadata so our callback can catch it all
+     if(!process_until_end_of_metadata ()) {
+         state = get_state();
++#ifdef LEGACY_FLAC
+         qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__FileDecoderStateString[state]);
++#else
++        qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__StreamDecoderStateString[state] );
++#endif
+         decode_error = true;
+         finish();
+         return -2;
+@@ -108,7 +128,11 @@ int QMBFLACFile::Extract(QString filenam
+     while (!decode_error && offset < (unsigned long) bufferlen) {
+         if (!process_single()) {
+             state = get_state();
++#ifdef LEGACY_FLAC
+             qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__FileDecoderStateString[state]);
++#else
++            qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__StreamDecoderStateString[state]);
++#endif
+             decode_error = true;
+             finish();
+             return -2;
diff --git a/media-sound/prokyon3/files/prokyon3-0.9.6-qdir.patch b/media-sound/prokyon3/files/prokyon3-0.9.6-qdir.patch
new file mode 100644 (file)
index 0000000..80b4746
--- /dev/null
@@ -0,0 +1,12 @@
+Index: prokyon3-0.9.6/src/job_importplaylist.cpp
+===================================================================
+--- prokyon3-0.9.6.orig/src/job_importplaylist.cpp
++++ prokyon3-0.9.6/src/job_importplaylist.cpp
+@@ -9,6 +9,7 @@
+ #include <qstringlist.h>
+ #include <qregexp.h>
+ #include <qfile.h>
++#include <qdir.h>
+ #include <qfileinfo.h>
+ #ifdef EMBEDDED
diff --git a/media-sound/prokyon3/prokyon3-0.9.6.ebuild b/media-sound/prokyon3/prokyon3-0.9.6.ebuild
new file mode 100644 (file)
index 0000000..80364a1
--- /dev/null
@@ -0,0 +1,89 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/prokyon3/prokyon3-0.9.6.ebuild,v 1.1 2007/03/25 18:44:58 aballier Exp $
+
+inherit qt3 eutils autotools
+
+DESCRIPTION="Multithreaded music manager and tag editor based on Qt and MySQL."
+HOMEPAGE="http://prokyon3.sourceforge.net"
+SRC_URI="mirror://sourceforge/prokyon3/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="flac mp3 musicbrainz taglib vorbis"
+
+DEPEND="$(qt_min_version 3.2)
+       media-libs/taglib
+       taglib? ( media-libs/taglib )
+       musicbrainz? ( media-libs/musicbrainz
+               mp3? ( media-libs/libmad )
+               vorbis? ( media-libs/libvorbis )
+               flac? ( media-libs/flac ) )"
+
+pkg_setup() {
+       if ! built_with_use =x11-libs/qt-3* mysql; then
+               eerror "You have installed Qt without MySQL support."
+               eerror "Please reemerge x11-libs/qt-3* with "mysql" in USE."
+               die "MySQL support for Qt not found."
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       epatch "${FILESDIR}/${P}-cflags.patch"
+       epatch "${FILESDIR}/${P}-qdir.patch"
+       epatch "${FILESDIR}/${P}-flac113.patch"
+       epatch "${FILESDIR}/${P}-asneeded.patch"
+       eautoreconf
+}
+
+src_compile() {
+       # Support for musicextras (not in portage)
+       # requires dev-libs/xmlwrapp.
+
+       local myconf="--with-taglib
+                       --without-id3
+                       --without-mysql-embedded
+                       --without-musicextras"
+
+       if use musicbrainz; then
+               myconf="${myconf}
+                       --with-musicbrainz
+                       $(use_with mp3 mad)
+                       $(use_with vorbis ogg)
+                       $(use_with flac)"
+       else
+               myconf="${myconf}
+                       --without-musicbrainz"
+       fi
+
+       econf ${myconf} $(use_with taglib) || die "configure failed"
+       emake || die "make failed"
+}
+
+src_install () {
+       emake DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+       echo
+       elog "Prokyon3 supports the following external programs"
+       elog "to play audio tracks:"
+       elog " - media-sound/amarok"
+       elog " - media-sound/beep-media-player"
+       elog " - media-video/kaffeine"
+       elog " - media-video/mplayer"
+       elog " - kde-base/noatun or kde-base/kdemultimedia"
+       elog " - media-video/totem"
+       elog " - media-sound/xmms"
+       elog
+       elog "Prokyon3 also supports the following external"
+       elog "applications, if installed:"
+       elog " - app-cdr/k3b:          CD burning"
+       elog " - media-sound/mixxx:    DJ mixing"
+       echo
+}