1 |
billie 13/11/23 13:01:30 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cdrtools-3.01_alpha19.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 215AD14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.318 app-cdr/cdrtools/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.318&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.318&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?r1=1.317&r2=1.318 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v |
20 |
retrieving revision 1.317 |
21 |
retrieving revision 1.318 |
22 |
diff -u -r1.317 -r1.318 |
23 |
--- ChangeLog 20 Oct 2013 20:20:07 -0000 1.317 |
24 |
+++ ChangeLog 23 Nov 2013 13:01:30 -0000 1.318 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-cdr/cdrtools |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.317 2013/10/20 20:20:07 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.318 2013/11/23 13:01:30 billie Exp $ |
30 |
+ |
31 |
+*cdrtools-3.01_alpha19 (23 Nov 2013) |
32 |
+ |
33 |
+ 23 Nov 2013; Daniel Pielmeier <billie@g.o> |
34 |
+ +cdrtools-3.01_alpha19.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
20 Oct 2013; Markus Meier <maekke@g.o> cdrtools-3.01_alpha17.ebuild: |
38 |
arm stable, bug #486318 |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-cdr/cdrtools/cdrtools-3.01_alpha19.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha19.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha19.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: cdrtools-3.01_alpha19.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha19.ebuild,v 1.1 2013/11/23 13:01:30 billie Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit fcaps multilib eutils toolchain-funcs flag-o-matic |
56 |
|
57 |
MY_P="${P/_alpha/a}" |
58 |
|
59 |
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord" |
60 |
HOMEPAGE="http://cdrecord.berlios.de/private/cdrecord.html" |
61 |
SRC_URI="ftp://ftp.berlios.de/pub/cdrecord/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha/')/${MY_P}.tar.bz2" |
62 |
|
63 |
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
66 |
IUSE="acl nls unicode" |
67 |
|
68 |
RDEPEND="acl? ( virtual/acl ) |
69 |
nls? ( virtual/libintl ) |
70 |
!app-cdr/cdrkit" |
71 |
DEPEND="${RDEPEND} |
72 |
nls? ( >=sys-devel/gettext-0.18.1.1 )" |
73 |
|
74 |
S=${WORKDIR}/${P/_alpha[0-9][0-9]} |
75 |
|
76 |
FILECAPS=( |
77 |
cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep usr/bin/cdrecord -- |
78 |
cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav -- |
79 |
cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd |
80 |
) |
81 |
|
82 |
src_prepare() { |
83 |
# Remove profiled make files. |
84 |
rm -f $(find ./ -name '*_p.mk') || die "rm profiled" |
85 |
|
86 |
# Adjusting hardcoded paths. |
87 |
sed -i -e "s|opt/schily|usr|" \ |
88 |
$(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \ |
89 |
|| die "sed opt/schily" |
90 |
|
91 |
sed -i -e "s|\(^INSDIR=\t\tshare/doc/\)|\1${PF}/|" \ |
92 |
$(find ./ -type f -exec grep -l '^INSDIR.\+doc' '{}' '+') \ |
93 |
|| die "sed doc" |
94 |
|
95 |
# Respect libdir. |
96 |
sed -i -e "s|\(^INSDIR=\t\t\)lib|\1$(get_libdir)|" \ |
97 |
$(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \ |
98 |
|| die "sed multilib" |
99 |
|
100 |
# Do not install static libraries. |
101 |
sed -i -e "s|include\t\t.*rules.lib||" \ |
102 |
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \ |
103 |
|| die "sed rules" |
104 |
|
105 |
# Respect CC/CXX variables. |
106 |
cd "${S}"/RULES |
107 |
local tcCC=$(tc-getCC) |
108 |
local tcCXX=$(tc-getCXX) |
109 |
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \ |
110 |
rules1.top || die "sed rules1.top" |
111 |
sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \ |
112 |
-e "/^CC++_COM_DEF=/s|g++|${tcCXX}|" \ |
113 |
-e "/COPTOPT=/s|-O||" \ |
114 |
-e 's|$(GCCOPTOPT)||' \ |
115 |
cc-gcc.rul || die "sed cc-gcc.rul" |
116 |
sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \ |
117 |
rules.cnf || die "sed rules.cnf" |
118 |
|
119 |
# Create additional symlinks needed for some archs (armv4l already created) |
120 |
local t |
121 |
for t in armv4tl armv5tel armv7l s390x; do |
122 |
ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die |
123 |
ln -s i586-linux-gcc.rul ${t}-linux-gcc.rul || die |
124 |
done |
125 |
|
126 |
# Schily make setup. |
127 |
cd "${S}"/DEFAULTS |
128 |
local os="linux" |
129 |
[[ ${CHOST} == *-darwin* ]] && os="mac-os10" |
130 |
|
131 |
sed -i \ |
132 |
-e "s|^\(DEFLINKMODE=\).*|\1\tdynamic|" \ |
133 |
-e "s|^\(LINUX_INCL_PATH=\).*|\1|" \ |
134 |
-e "s|^\(LDPATH=\).*|\1\t\t-L/usr/lib|" \ |
135 |
-e "s|^\(RUNPATH=\).*|\1|" \ |
136 |
-e "s|^\(INS_BASE=\).*|\1\t${ED}/usr|" \ |
137 |
-e "s|^\(INS_RBASE=\).*|\1\t${ED}|" \ |
138 |
-e "s|^\(DEFINSGRP=\).*|\1\troot|" \ |
139 |
Defaults.${os} || die "sed Schily make setup" |
140 |
} |
141 |
|
142 |
# skip obsolete configure script |
143 |
src_configure() { : ; } |
144 |
|
145 |
src_compile() { |
146 |
if use unicode; then |
147 |
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)" |
148 |
if [[ -n ${flags} ]]; then |
149 |
append-flags ${flags} |
150 |
else |
151 |
ewarn "Your compiler does not support the options required to build" |
152 |
ewarn "cdrtools with unicode in USE. unicode flag will be ignored." |
153 |
fi |
154 |
fi |
155 |
|
156 |
if ! use filecaps; then |
157 |
CFLAGS="${CFLAGS} -DNO_LINUX_CAPS" |
158 |
fi |
159 |
|
160 |
if ! use acl; then |
161 |
CFLAGS="${CFLAGS} -DNO_ACL" |
162 |
fi |
163 |
|
164 |
# If not built with -j1, "sometimes" cdda2wav will not be built. |
165 |
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ |
166 |
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" |
167 |
} |
168 |
|
169 |
src_install() { |
170 |
# If not built with -j1, "sometimes" manpages are not installed. |
171 |
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ |
172 |
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install |
173 |
|
174 |
# These symlinks are for compat with cdrkit. |
175 |
dosym schily /usr/include/scsilib |
176 |
dosym ../scg /usr/include/schily/scg |
177 |
|
178 |
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux |
179 |
|
180 |
cd "${S}"/cdda2wav |
181 |
docinto cdda2wav |
182 |
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO |
183 |
|
184 |
cd "${S}"/mkisofs |
185 |
docinto mkisofs |
186 |
dodoc ChangeLog* TODO |
187 |
|
188 |
# Remove man pages related to the build system |
189 |
rm -rvf "${ED}"/usr/share/man/man5 |
190 |
} |
191 |
|
192 |
pkg_postinst() { |
193 |
fcaps_pkg_postinst |
194 |
|
195 |
if [[ ${CHOST} == *-darwin* ]] ; then |
196 |
einfo |
197 |
einfo "Darwin/OS X use the following device names:" |
198 |
einfo |
199 |
einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices" |
200 |
einfo |
201 |
einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices" |
202 |
einfo |
203 |
fi |
204 |
} |