Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-block/unieject: unieject-6.ebuild ChangeLog
Date: Sat, 27 Jun 2009 13:26:13
Message-Id: E1MKXv0-0007lB-O4@stork.gentoo.org
1 flameeyes 09/06/27 13:26:10
2
3 Modified: ChangeLog
4 Added: unieject-6.ebuild
5 Log:
6 Version bump, the new version uses glib and has been slightly optimised. It also reduces warnings with GCC 4.4 and works fine on FreeBSD 7 (no more bashism in configure), closing bug #275584.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.46 sys-block/unieject/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/unieject/ChangeLog?rev=1.46&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/unieject/ChangeLog?rev=1.46&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/unieject/ChangeLog?r1=1.45&r2=1.46
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-block/unieject/ChangeLog,v
19 retrieving revision 1.45
20 retrieving revision 1.46
21 diff -u -r1.45 -r1.46
22 --- ChangeLog 8 Aug 2008 06:28:16 -0000 1.45
23 +++ ChangeLog 27 Jun 2009 13:26:10 -0000 1.46
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-block/unieject
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/ChangeLog,v 1.45 2008/08/08 06:28:16 ulm Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/ChangeLog,v 1.46 2009/06/27 13:26:10 flameeyes Exp $
30 +
31 +*unieject-6 (27 Jun 2009)
32 +
33 + 27 Jun 2009; Diego E. Pettenò <flameeyes@g.o> +unieject-6.ebuild:
34 + Version bump, the new version uses glib and has been slightly optimised.
35 + It also reduces warnings with GCC 4.4 and works fine on FreeBSD 7 (no more
36 + bashism in configure), closing bug #275584.
37
38 08 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
39 Add USE flag description to metadata wrt GLEP 56.
40
41
42
43 1.1 sys-block/unieject/unieject-6.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/unieject/unieject-6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/unieject/unieject-6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: unieject-6.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/unieject-6.ebuild,v 1.1 2009/06/27 13:26:10 flameeyes Exp $
53
54 inherit eutils libtool
55
56 DESCRIPTION="Multiplatform command to eject and load CD-Rom drives"
57 HOMEPAGE="http://www.flameeyes.eu/projects#unieject"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
63 IUSE="nls pmount"
64
65 RDEPEND=">=dev-libs/libcdio-0.77
66 >=dev-libs/glib-2.6
67 >=dev-libs/confuse-2.5
68 nls? ( virtual/libintl )"
69 DEPEND="${RDEPEND}
70 nls? ( sys-devel/gettext )
71 sys-apps/sed
72 dev-util/pkgconfig"
73 RDEPEND="${RDEPEND}
74 pmount? ( sys-apps/pmount )
75 !sys-apps/eject
76 !sys-block/eject-bsd"
77
78 PROVIDE="virtual/eject"
79
80 pkg_setup() {
81 use pmount && enewgroup plugdev
82 }
83
84 src_unpack() {
85 unpack ${A}
86 cd "${S}"
87
88 elibtoolize
89 }
90
91 src_compile() {
92 econf \
93 $(use_enable nls) \
94 --enable-lock-workaround \
95 --disable-dependency-tracking \
96 --disable-doc \
97 --htmldir=/usr/share/doc/${PF}/html \
98 --docdir=/usr/share/doc/${PF} \
99 || die "econf failed"
100 emake || die "emake failed"
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die "emake install failed"
105 find "${D}" -name '*.la' -delete
106
107 # Symlink to eject to provide a good virtual/eject
108 dosym unieject.1 /usr/share/man/man1/eject.1 || die
109 dosym unieject /usr/bin/eject || die
110
111 # If we enable support for pmount, we need to change the installed
112 # configuration file to enable the unmount wrapper, and we also set the
113 # command setuid root but in group plugdev, so that it's inlined with pmount
114 # itself.
115 if use pmount; then
116 fowners root:plugdev /usr/bin/unieject
117 fperms 1710 /usr/bin/unieject
118 chmod +s "${D}/usr/bin/unieject"
119
120 dodir /etc
121 sed -e 's:^# \(unmount-wrapper = \):\1:' \
122 "${S}/unieject.conf.sample" \
123 > "${D}/etc/unieject.conf"
124 fi
125 }