Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59325 - mp3cat-0.4 ebuild (new package)
Summary: mp3cat-0.4 ebuild (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Patrick Dawson (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-08-03 18:49 UTC by Salim Fadhley
Modified: 2005-01-27 13:18 UTC (History)
0 users

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


Attachments
eBuild for mp3cat 0.4 (mp3cat.tgz,1.06 KB, application/octet-stream)
2004-08-03 18:50 UTC, Salim Fadhley
Details
Reviewed ebuild. (mp3cat-0.4.ebuild,555 bytes, text/plain)
2005-01-24 09:27 UTC, Nikolaos Anastopoulos
Details
Reviewed ebuild. (mp3cat-0.4.ebuild,535 bytes, text/plain)
2005-01-24 17:11 UTC, Nikolaos Anastopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salim Fadhley 2004-08-03 18:49:19 UTC
mp3cat is a utility that can read, write and clean-up mp3 files and streams.
Comment 1 Salim Fadhley 2004-08-03 18:50:56 UTC
Created attachment 36725 [details]
eBuild for mp3cat 0.4
Comment 2 Salim Fadhley 2004-08-03 18:52:15 UTC
I'm fairly new to this eBuild writing business, so I do value any constructive criticism. I am sure the Gentoo devs will find a few things wrong with an eBuild as simple as this. 
Comment 3 Patrick Dawson (RETIRED) gentoo-dev 2004-08-09 15:15:53 UTC
First, please attach files individually as plaintext rather than putting them all into an archive. Don't bother including the Manifest or digests; we generate those :)
Forget the patch, because we usually don't want stuff in /usr/local. Use dobin instead.

No need for "${PN}-${PV}". That's the same as "${P}".

See:
1) http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
2) http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
3) /usr/portage/skel.ebuild
Comment 4 Salim Fadhley 2004-08-09 16:05:37 UTC
Thanks for taking the time to provide feedback; 

Can you explain a little about dobin - I have a makefile that wants to put everything into a spesific place when somebody does "make install" - are you saying that I should use dobin to 'manually' place the binaries in the os-approved area which I guess is /usr/bin?
Comment 5 Patrick Dawson (RETIRED) gentoo-dev 2004-08-09 16:25:12 UTC
Yes. Alternatively, you could use sed to fix the Makefile. This should do it:
sed -i "s:/usr/local:\$\{DESTDIR\}/usr:" Makefile

Whichever seems less ugly.
Comment 6 Nikolaos Anastopoulos 2005-01-24 09:27:35 UTC
Created attachment 49389 [details]
Reviewed ebuild.

Use dobin instead of patch in order to install the package.
Remove the inherit eutils, since no patch used.
Use of sed in order to make the package compile with ${CFLAGS}
Use of "${P}" instead of "${PN}-${PV}".
Set the RESTRICT="nomirror", because file is not being mirrored anyware.
Comment 7 Nikolaos Anastopoulos 2005-01-24 17:11:46 UTC
Created attachment 49438 [details]
Reviewed ebuild.

Sorry, I misunderstood nomirror keyword. New ebuild attached.
Comment 8 Patrick Dawson (RETIRED) gentoo-dev 2005-01-24 18:24:03 UTC
Looks OK to me. I'll get this in soon.
Comment 9 Patrick Dawson (RETIRED) gentoo-dev 2005-01-27 13:18:58 UTC
In portage.