1 |
billie 09/11/04 22:35:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cdrtools-2.01.01_alpha67-r1.ebuild |
5 |
Log: |
6 |
Also use LINKMODE in src_install. This should fix bug #289110. |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.238 app-cdr/cdrtools/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.238&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.238&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/cdrtools/ChangeLog?r1=1.237&r2=1.238 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v |
19 |
retrieving revision 1.237 |
20 |
retrieving revision 1.238 |
21 |
diff -u -r1.237 -r1.238 |
22 |
--- ChangeLog 4 Nov 2009 18:17:23 -0000 1.237 |
23 |
+++ ChangeLog 4 Nov 2009 22:35:31 -0000 1.238 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-cdr/cdrtools |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.237 2009/11/04 18:17:23 billie Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.238 2009/11/04 22:35:31 billie Exp $ |
29 |
+ |
30 |
+*cdrtools-2.01.01_alpha67-r1 (04 Nov 2009) |
31 |
+ |
32 |
+ 04 Nov 2009; Pielmeier Daniel <billie@g.o> |
33 |
+ +cdrtools-2.01.01_alpha67-r1.ebuild: |
34 |
+ Also use LINKMODE in src_install. This should fix bug #289110. |
35 |
|
36 |
*cdrtools-2.01.01_alpha67 (04 Nov 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-cdr/cdrtools/cdrtools-2.01.01_alpha67-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/cdrtools/cdrtools-2.01.01_alpha67-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/cdrtools/cdrtools-2.01.01_alpha67-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cdrtools-2.01.01_alpha67-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/cdrtools-2.01.01_alpha67-r1.ebuild,v 1.1 2009/11/04 22:35:31 billie Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
inherit multilib eutils toolchain-funcs flag-o-matic |
55 |
|
56 |
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord" |
57 |
HOMEPAGE="http://cdrecord.berlios.de/" |
58 |
SRC_URI="ftp://ftp.berlios.de/pub/cdrecord/alpha/${P/_alpha/a}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
63 |
IUSE="unicode acl" |
64 |
|
65 |
DEPEND="acl? ( sys-apps/acl ) |
66 |
!app-cdr/dvdrtools |
67 |
!app-cdr/cdrkit" |
68 |
RDEPEND="${DEPEND}" |
69 |
|
70 |
S=${WORKDIR}/${PN}-2.01.01 |
71 |
|
72 |
src_prepare() { |
73 |
# Adjusting hardcoded paths. |
74 |
sed -i -e 's:opt/schily:usr:' \ |
75 |
$(grep -l --include='*.1' --include='*.8' -r 'opt/schily' .) \ |
76 |
$(grep -l --include='*.c' --include='*.h' -r 'opt/schily' .) \ |
77 |
|| die "404 on opt-schily sed" |
78 |
|
79 |
sed -i -e "s:\(^INSDIR=\t\tshare/doc/\):\1${PF}/:" \ |
80 |
$(grep -l -r 'INSDIR.\+doc' .) \ |
81 |
|| die "404 on doc sed" |
82 |
|
83 |
# Respect libdir. |
84 |
sed -i -e "s:\(^INSDIR=\t\t\)lib:\1$(get_libdir):" \ |
85 |
$(grep -l -r '^INSDIR.\+lib\(/siconv\)\?$' .) \ |
86 |
|| die "404 on multilib-sed" |
87 |
|
88 |
# See previous comment s/libdir/--disable-static/. |
89 |
sed -i -e 's:include\t\t.*rules.lib::' \ |
90 |
$(grep -l -r '^include.\+rules\.lib' .) \ |
91 |
|| die "404 on rules sed" |
92 |
|
93 |
# Remove profiled make files. |
94 |
rm -f $(find . -name '*_p.mk') || die "rm failed" |
95 |
|
96 |
epatch "${FILESDIR}"/${PN}-2.01.01_alpha50-asneeded.patch |
97 |
|
98 |
# Schily make setup. |
99 |
cd "${S}"/DEFAULTS |
100 |
local MYARCH="linux" |
101 |
|
102 |
sed -i "s:/opt/schily:/usr:g" Defaults.${MYARCH} || die "sed schily-opt failed" |
103 |
sed -i "s:/usr/src/linux/include::g" Defaults.${MYARCH} || die "sed linux-include failed" |
104 |
sed -i "/RUNPATH/ c\RUNPATH= " Defaults.${MYARCH} || die "sed RUNPATH failed" |
105 |
|
106 |
cd "${S}"/RULES |
107 |
|
108 |
# Respect CC/CXX variables |
109 |
local tcCC=$(tc-getCC) |
110 |
local tcCXX=$(tc-getCXX) |
111 |
sed -i -e "/cc-config.sh/s/\$(C_ARCH:%64=%) \$(CCOM_DEF)/${tcCC} ${tcCC}/" \ |
112 |
rules1.top || die "sed rules1.top failed" |
113 |
sed -i -e "/^\(CC\|DYNLD\|LDCC\|MKDEP\)/s/gcc/${tcCC}/" \ |
114 |
-e "/^\(CC++\|DYNLDC++\|LDCC++\|MKC++DEP\)/s/g++/${tcCXX}/" \ |
115 |
cc-gcc.rul || die "sed cc-gcc.rul failed" |
116 |
sed -i -e "s/^#CONFFLAGS +=\t-cc=\$(XCC_COM)$/CONFFLAGS +=\t-cc=${tcCC}/g" \ |
117 |
rules.cnf || die "sed rules.cnf failed" |
118 |
|
119 |
# Create additional symlinks needed for some archs. |
120 |
local t |
121 |
for t in ppc64 sh4 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 |
|
127 |
src_configure() { : ; } |
128 |
|
129 |
src_compile() { |
130 |
local ACL="-lacl" |
131 |
if use unicode; then |
132 |
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)" |
133 |
if [[ -n ${flags} ]]; then |
134 |
append-flags ${flags} |
135 |
else |
136 |
ewarn "Your compiler does not support the options required to build" |
137 |
ewarn "cdrtools with unicode in USE. unicode flag will be ignored." |
138 |
fi |
139 |
fi |
140 |
|
141 |
if ! use acl |
142 |
then |
143 |
CFLAGS="${CFLAGS} -DNO_ACL" |
144 |
ACL="" |
145 |
fi |
146 |
# If not built with -j1, "sometimes" cdda2wav will not be built. Bug? |
147 |
emake -j1 CC="$(tc-getCC) -D__attribute_const__=const" COPTX="${CFLAGS}" \ |
148 |
LIB_ACL_TEST="${ACL}" CPPOPTX="${CPPFLAGS}" LDOPTX="${LDFLAGS}" \ |
149 |
LINKMODE="dynamic" GMAKE_NOWARN="true" || die "emake failed" |
150 |
} |
151 |
|
152 |
src_install() { |
153 |
# If not built with -j1, "sometimes" manpages are not installed. Bug? |
154 |
emake -j1 MANDIR="share/man" INS_BASE="${D}/usr/" INS_RBASE="${D}" \ |
155 |
LINKMODE="dynamic" GMAKE_NOWARN="true" install |
156 |
|
157 |
# These symlinks are for compat with cdrkit. |
158 |
dosym schily /usr/include/scsilib |
159 |
dosym ../scg /usr/include/schily/scg |
160 |
|
161 |
dodoc ABOUT Changelog README README.linux-shm START READMEs/README.linux || die "dodoc cdrtools" |
162 |
|
163 |
cd "${S}"/cdda2wav |
164 |
docinto cdda2wav |
165 |
dodoc FAQ Frontends HOWTOUSE TODO || die "dodoc cdda2wav" |
166 |
} |