Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275657 - gnome-extra/alarm-clock-1.2.1 (new ebuild)
Summary: gnome-extra/alarm-clock-1.2.1 (new ebuild)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://alarm-clock.pl/
Whiteboard: sunrise suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-06-28 03:01 UTC by 白川間瀬流
Modified: 2013-04-28 14:48 UTC (History)
1 user (show)

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


Attachments
alarm-clock-1.0_beta1.ebuild (alarm-clock-1.0_beta1.ebuild,741 bytes, text/plain)
2009-06-28 03:02 UTC, 白川間瀬流
Details
Alarm Clock 1.0 ebuild (alarm-clock-1.0_beta1.ebuild,611 bytes, text/plain)
2009-07-03 09:56 UTC, 白川間瀬流
Details
alarm-clock-1.2.1.ebuild (alarm-clock-1.2.1.ebuild,603 bytes, text/plain)
2009-08-03 23:38 UTC, 白川間瀬流
Details
Updated ebuild for alarm-clock-1.2.4 (alarm-clock-1.2.4.ebuild,531 bytes, text/plain)
2009-10-01 15:27 UTC, Jouni Rinne
Details
A better version of ebuild (alarm-clock-1.2.4-r1.ebuild,651 bytes, text/plain)
2009-10-01 20:01 UTC, Jouni Rinne
Details
gnome-extra/alarm-clock-1.2.5.ebuild (alarm-clock-1.2.5.ebuild,654 bytes, text/plain)
2010-01-01 10:00 UTC, Jouni Rinne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 白川間瀬流 2009-06-28 03:01:16 UTC
New Ebuild for Alarm Clock 1.0beta1

Reproducible: Always

Steps to Reproduce:
Comment 1 白川間瀬流 2009-06-28 03:02:04 UTC
Created attachment 195930 [details]
alarm-clock-1.0_beta1.ebuild
Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-06-28 10:35:33 UTC
- Don't use tar app directly into src_unpack() there is a function disigned for  that purpose called "unpack". (tar can fails unpack dies itself)

- Don't use "mv ${WORKDIR}/alarm-clock-1.0beta1/* ${WORKDIR}/", because ${S} is defined as ${WORKDIR}/${PN} as default, and you need to work into ${WORKDIR}/${PN} instead of ${WORKDIR} directly.

- mv can fails (|| die statement is required)

- src_unpack() is finally not necessary because defined as default using EAPI="0".

- src_compile() is not necessary too, for the same reasons.

have a look to  http://devmanual.gentoo.org/ for more details, and if you've any problem don't hesitate to ask here ;)
Comment 3 Romain Perier (RETIRED) gentoo-dev 2009-06-28 10:36:34 UTC
(In reply to comment #2)
> - Don't use tar app directly into src_unpack() there is a function disigned for
>  that purpose called "unpack". (tar can fails unpack dies itself)
> 
> - Don't use "mv ${WORKDIR}/alarm-clock-1.0beta1/* ${WORKDIR}/", because ${S} is
> defined as ${WORKDIR}/${PN} as default, and you need to work into
> ${WORKDIR}/${PN} instead of ${WORKDIR} directly.
> 
> - mv can fails (|| die statement is required)
> 
> - src_unpack() is finally not necessary because defined as default using
> EAPI="0".
> 
> - src_compile() is not necessary too, for the same reasons.
> 
> have a look to  http://devmanual.gentoo.org/ for more details, and if you've
> any problem don't hesitate to ask here ;)
> 

By the way , header isn't up-to-date :)
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-28 11:35:29 UTC
you should also probably use base eclass since it does most of what you put into this ebuild.
Comment 5 白川間瀬流 2009-07-03 03:20:09 UTC
this is an just working ebuild and its works

i cant use $S cause the PN is NOT the name of the source package

but the ebuild does not allow another PN in cause of invalid package atom

alarm-clock-1.0_beta1 != alarm-clock-1.0beta1

thats why src_unpack() is needed! and thats why i did not uses $S
Comment 6 Romain Perier (RETIRED) gentoo-dev 2009-07-03 05:52:26 UTC
(In reply to comment #5)
> this is an just working ebuild and its works
> 
> i cant use $S cause the PN is NOT the name of the source package
> 
> but the ebuild does not allow another PN in cause of invalid package atom
> 
> alarm-clock-1.0_beta1 != alarm-clock-1.0beta1
> 
> thats why src_unpack() is needed! and thats why i did not uses $S
> 

In this case Use MY_PN like this:
MY_PV=${PV/_/}
MY_PN=${PN}-${MY_PV}

and use my ${MY_PN} instead of ${PN} (it's a standard spec), and in this case I repeat, src_unpack() function is unuseful, because unpack ${A} will be call and will unpack tarball as default. (into the default function)
${S} var is designed for that purpose, ie when the PN is not the same of the sources package (the dirname into WORKDIR), in this case you need to define it explicitly, otherwises it's implictly defined to "${WORKDIR}/${P}".

So in our case :
S=${WORKDIR}/${MY_P}
and src_unpack() default function uses ${S} as default, so all is allright.
Comment 7 Romain Perier (RETIRED) gentoo-dev 2009-07-03 06:02:43 UTC
Use MY_PV=${PV/_/}  or something else of course.
It's not to blame you, it's to help you ;)

Comment 8 白川間瀬流 2009-07-03 09:56:49 UTC
Created attachment 196484 [details]
Alarm Clock 1.0 ebuild

thx for the constructive help
Comment 9 白川間瀬流 2009-08-03 23:38:50 UTC
Created attachment 200077 [details]
alarm-clock-1.2.1.ebuild
Comment 10 Jouni Rinne 2009-10-01 15:27:51 UTC
Created attachment 205766 [details]
Updated ebuild for alarm-clock-1.2.4
Comment 11 Jouni Rinne 2009-10-01 20:01:05 UTC
Created attachment 205782 [details]
A better version of ebuild
Comment 12 Jouni Rinne 2010-01-01 10:00:13 UTC
Created attachment 214818 [details]
gnome-extra/alarm-clock-1.2.5.ebuild
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2010-01-01 19:43:35 UTC
Jouni, thank just a few comments for ebuild:

1. Missed IUSE
2. SLOT deps (dev-python/pygtk:2) are available in EAPI="1" only.
3. it's good idea to move sed to src_unpack (or better USE EAPI="2" and use src_prepare)
4. pkg_postinst is redundant
5. inherit eutils is redundant

Also I suggest you to take a look at Sunrise project and commit fixed ebuild into Sunrise overlay. Please refer to CodingStandards and HowToCommit on the project page for details: http://overlays.gentoo.org/proj/sunrise/

Currently I don't see why sunrise is in CC. Removing.
Comment 14 白川間瀬流 2013-04-28 14:48:54 UTC
Seems like this is no longer needed with GNOME3 as there is a replacement for this.


i opened this bug in 2009... wow :D good old times