Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25085 - [new ebuild] media-sound/solfege-2.0.4
Summary: [new ebuild] media-sound/solfege-2.0.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL: http://solfege.sourceforge.net
Whiteboard:
Keywords: EBUILD
: 27974 (view as bug list)
Depends on: 27970
Blocks:
  Show dependency tree
 
Reported: 2003-07-22 14:49 UTC by TGL
Modified: 2004-02-10 06:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
solfege-1.9.11.ebuild (solfege-1.9.11.ebuild,1.21 KB, text/plain)
2003-07-22 14:50 UTC, TGL
Details
solfege-2.0.0.ebuild (solfege-2.0.0.ebuild,1.70 KB, text/plain)
2003-09-05 19:19 UTC, TGL
Details
solfege-2.0.0.ebuild (solfege-2.0.0.ebuild,2.20 KB, text/plain)
2003-09-06 07:34 UTC, TGL
Details
solfege-2.0.4.ebuild (solfege-2.0.4.ebuild,2.17 KB, text/plain)
2004-02-09 19:10 UTC, TGL
Details
solfege-2.0.4.ebuild (solfege-2.0.4.ebuild,2.17 KB, text/plain)
2004-02-09 19:38 UTC, TGL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2003-07-22 14:49:22 UTC
<quote from="http://solfege.sourceforge.net">
GNU Solfege is a computer program written to help you practice ear training. It
can be useful when practicing the simple and mechanical exercises. These are the
exercises written so far:
    * Recognise melodic and harmonic intervals
    * Compare interval sizes
    * Sing the intervals the computer asks for
    * Identify chords
    * Sing chords
    * Scales
    * Dictation
    * Remembering rhythmic patterns
</quote>

Here is an ebuild for the devel version. It is based on pygtk-1.99 and
libgtkhtml-2, and optionaly gnome-python-1.99 (and also swig at building time).
The stable version was still gtk-1.2 based, and since this one works okay for
me, I've prefered this one. It can use hardware midi output or a software
sequencer (like timidity). I've successfully compiled and tested it on a ~x86
gcc-2.95-3 box, with alsa-0.9 and SBlive sound-card.

Here are a few choices I've made:

 - There were two availables tarballs for the install. I've choosen the one with
prebuilt documentation files, because for the other one you need to explicitly
give the path to some docbook xsl files, and this paths depends on the version
you have installed, etc. There are less dependencies with this one, and there
will probably be less issues.

 - I've modified the path to install the .desktop file to
"/usr/share/applications". Is that okay? (I was not sure about "the right
place"(tm) to put this.)

 - I've choosen to install only .py files, not .pyc and .pyo, because the
"performance" tradeoff is not critical on this kind of application.

Okay, that's all, let's go back to ear training :)

Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2003-07-22 14:50:01 UTC
Created attachment 14887 [details]
solfege-1.9.11.ebuild
Comment 2 TGL 2003-09-05 19:19:00 UTC
Created attachment 17138 [details]
solfege-2.0.0.ebuild

Update to version 2.0.0. Some improvements were inspired by bug #27974.
Now also depends on app-text/docbook-xsl-stylesheets-1.62.0, available
on bug #27970.
Comment 3 Hypnos 2003-09-06 03:11:30 UTC
Your ebuild works fine for me!

One possible problem non-GNOME users:  the gtkhtml functionality will not work without the gnome functionality, so you want something like this in the runtime dependencies:

#####
gnome? ( >=dev-python/gnome-python-1.99.15
	 gtkhtml? ( >=gnome-extra/libgtkhtml-1.99.6 ) )"
#####

and something like this in src_compile():

#####
use gtkhtml || myconf="$myconf --without-gtkhtml"
use gnome || myconf="$myconf --without-gnome --without-gtkhtml"
####



Comment 4 TGL 2003-09-06 07:34:25 UTC
Created attachment 17157 [details]
solfege-2.0.0.ebuild

Thanks for your comment. I don't fully agree tho:

Technicaly, it is possible to configure with only the "--without-gnome" 
option, and to still have a working gtkhtml2 support. What lacks in my 
previous ebuild was only a gtkhtml? dependency on gnome-python. But what 
is important when gtkhtml flag is enable is to ensure that gnome-python
has also be compiled with this flag enabled.

I've added such a test in this ebuild. Not sure how clean it is tho.
Comment 5 J. Ellis (RETIRED) gentoo-dev 2003-09-20 05:47:48 UTC
*** Bug 27974 has been marked as a duplicate of this bug. ***
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-09 03:03:35 UTC
If you could update your ebuild to work with the latest version (2.0.4 I believe) or simply let me know that this one works with the new version, it would really expedite getting it into portage.

Thanks
Comment 7 TGL 2004-02-09 19:10:17 UTC
Thanks for your interest for this ebuild. I've reworked it a bit while updating to 2.0.4. The hacks for checking gtkhtml in gnome-python is still there because there is still no way in portage to verify this cleanly. I've put it in pkg_setup thinking "the sooner, the better", but am not sure what is the best (src_compile also makes sense since it is more or less a ./configure like check).

I could not test this version with hardware midi because i don't currently have a working machine with a real soundcard (hmmm... me dreams of computing without the hardware...), so all i've tried was timidity.
Comment 8 TGL 2004-02-09 19:10:51 UTC
Created attachment 25310 [details]
solfege-2.0.4.ebuild
Comment 9 TGL 2004-02-09 19:38:55 UTC
Created attachment 25313 [details]
solfege-2.0.4.ebuild

Removed trailing whitespaces. Just for pleasure to have a repoman-compliant
submission.
Comment 10 TGL 2004-02-09 19:55:02 UTC
Doh! there a trailing IUSE flag, alsa, which is not used. Can i let you remove it? I had it at some point but then choosed to removed the alsa dep i had introduced. Thanks.
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 00:24:11 UTC
Very nice and clean ebuild.  Me likey.

A few comments though...

For SRC_URI's on sf, you can just use:
mirror://sourceforge/${PN}/${P}.tar.bz2 (or similar) rather than a "real" http://some.actual.mirror/...

Also, when using sourceforge or another mirror system, it's prefered that you place RESTRICT="nomirror" in the ebuild so it's fetched directly from sf rather than from gentoo.  And instead of 'einstall' try 'make DESTDIR=${D} install' first.  If that fails, fall back on einstall, but the DESTDIR way is prefered.

I'm testing it out now.  Thanks.

--Jeremy
Comment 12 TGL 2004-02-10 00:49:36 UTC
Bah! i forgot in some ebuilds what i think to do in others, i mean, i knew about this third party mirrors... grrr... and here is also another thing i've forgot to update, half of makefile sed command is obsolete:

	mv Makefile.in Makefile.in.orig
-	sed -e 's:links:#links: ; s:gnome/apps/Applications:applications:' \
+	sed -e 's:gnome/apps/Applications:applications:' \
		< Makefile.in.orig > Makefile.in

For the install command, the makefile doesn't seem to know about "DESTDIR", only "prefix" and his friends, so i think you'll have to keep the einstall call.

Thanks for your review and test.
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 01:20:51 UTC
In portage.  Thanks.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 01:57:46 UTC
Also forgot a sys-apps/sed in DEPEND... don't forget if you use it in the ebuild, you need to DEPEND on it... that's something I always have to double check myself... that and libtool/automake/autoconf stuff... 

you're a pretty good ebuild writer.  If you have time and desire, you might want to see about becomming a gentoo developer.  We could use the help ;)  Just create a new "bug" in the 'New Gentoo Developers' "product" if you're interestead.
Comment 15 TGL 2004-02-10 06:15:15 UTC
> Also forgot a sys-apps/sed in DEPEND... 

Ah, ok, I was thinking this was not needed for pkg already in system profile.

> you're a pretty good ebuild writer.

Thanks :)

> Just create a new "bug" in the 'New Gentoo Developers' "product" if you're interestead.

In fact i've already entered the queue, Seemant opened a bug for me maybe one week ago, so wait and see...