Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/
Date: Wed, 27 Sep 2017 20:39:11
Message-Id: 1506544740.99f07467e246c7f6dbacc9f52969b4de25c22260.billie@gentoo
1 commit: 99f07467e246c7f6dbacc9f52969b4de25c22260
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 27 20:39:00 2017 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 27 20:39:00 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99f07467
7
8 app-cdr/cdrtools: Remove old.
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.1
11
12 app-cdr/cdrtools/cdrtools-3.02_alpha07.ebuild | 272 --------------------------
13 1 file changed, 272 deletions(-)
14
15 diff --git a/app-cdr/cdrtools/cdrtools-3.02_alpha07.ebuild b/app-cdr/cdrtools/cdrtools-3.02_alpha07.ebuild
16 deleted file mode 100644
17 index 0859e80d49f..00000000000
18 --- a/app-cdr/cdrtools/cdrtools-3.02_alpha07.ebuild
19 +++ /dev/null
20 @@ -1,272 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit fcaps multilib toolchain-funcs flag-o-matic gnuconfig
27 -
28 -MY_P="${P/_alpha/a}"
29 -
30 -DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
31 -HOMEPAGE="https://sourceforge.net/projects/cdrtools/"
32 -SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
33 -
34 -LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
35 -SLOT="0"
36 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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"
37 -IUSE="acl caps nls unicode"
38 -
39 -RDEPEND="acl? ( virtual/acl )
40 - caps? ( sys-libs/libcap )
41 - nls? ( virtual/libintl )
42 - !app-cdr/cdrkit"
43 -DEPEND="${RDEPEND}
44 - x11-misc/makedepend
45 - nls? ( >=sys-devel/gettext-0.18.1.1 )"
46 -
47 -S=${WORKDIR}/${P/_alpha[0-9][0-9]}
48 -
49 -FILECAPS=(
50 - 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 --
51 - cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav --
52 - cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd
53 -)
54 -
55 -cdrtools_os() {
56 - local os="linux"
57 - [[ ${CHOST} == *-darwin* ]] && os="mac-os10"
58 - [[ ${CHOST} == *-freebsd* ]] && os="freebsd"
59 - echo "${os}"
60 -}
61 -
62 -src_prepare() {
63 - default
64 -
65 - gnuconfig_update
66 -
67 - # This fixes a clash with clone() on uclibc. Upstream isn't
68 - # going to include this so let's try to carry it forward.
69 - # Contact me if it needs updating. Bug #486782.
70 - # Anthony G. Basile <blueness@g.o>.
71 - use elibc_uclibc && epatch "${FILESDIR}"/${PN}-fix-clone-uclibc.patch
72 -
73 - # Remove profiled make files.
74 - find -name '*_p.mk' -delete || die "delete *_p.mk"
75 -
76 - # Adjusting hardcoded paths.
77 - sed -i -e "s|opt/schily|usr|" \
78 - $(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \
79 - || die "sed opt/schily"
80 -
81 - sed -i -e "s|\(^INSDIR=\t\tshare/doc/\)|\1${PF}/|" \
82 - $(find ./ -type f -exec grep -l '^INSDIR.\+doc' '{}' '+') \
83 - || die "sed doc"
84 -
85 - # Respect libdir.
86 - sed -i -e "s|\(^INSDIR=\t\t\)lib|\1$(get_libdir)|" \
87 - $(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \
88 - || die "sed multilib"
89 -
90 - # Do not install static libraries.
91 - sed -i -e "s|include\t\t.*rules.lib||" \
92 - $(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
93 - || die "sed rules"
94 -
95 - # Enable verbose build.
96 - sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \
97 - RULES/*.rul RULES/rules.prg RULES/rules.inc \
98 - || die "sed verbose rules"
99 -
100 - # Respect CC/CXX variables.
101 - cd "${S}"/RULES || die
102 - local tcCC=$(tc-getCC)
103 - local tcCXX=$(tc-getCXX)
104 - sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
105 - rules1.top || die "sed rules1.top"
106 - sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \
107 - -e "/^CC++_COM_DEF=/s|g++|${tcCXX}|" \
108 - -e "/COPTOPT=/s|-O||" \
109 - -e 's|$(GCCOPTOPT)||' \
110 - cc-gcc.rul || die "sed cc-gcc.rul"
111 - sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \
112 - rules.cnf || die "sed rules.cnf"
113 -
114 - # Schily make setup.
115 - cd "${S}"/DEFAULTS || die
116 - local os=$(cdrtools_os)
117 -
118 - sed -i \
119 - -e "s|^\(DEFLINKMODE=\).*|\1\tdynamic|" \
120 - -e "s|^\(LINUX_INCL_PATH=\).*|\1|" \
121 - -e "s|^\(LDPATH=\).*|\1|" \
122 - -e "s|^\(RUNPATH=\).*|\1|" \
123 - -e "s|^\(INS_BASE=\).*|\1\t${ED}/usr|" \
124 - -e "s|^\(INS_RBASE=\).*|\1\t${ED}|" \
125 - -e "s|^\(DEFINSGRP=\).*|\1\t0|" \
126 - -e '/^DEFUMASK/s,002,022,g' \
127 - Defaults.${os} || die "sed Schily make setup"
128 - # re DEFUMASK above:
129 - # bug 486680: grsec TPE will block the exec if the directory is
130 - # group-writable. This is painful with cdrtools, because it makes a bunch of
131 - # group-writable directories during build. Change the umask on their
132 - # creation to prevent this.
133 -}
134 -
135 -ac_cv_sizeof() {
136 - cat <<-EOF >"${T}"/test.c
137 - #include <inttypes.h>
138 - #include <stddef.h>
139 - #include <stdint.h>
140 - #include <sys/types.h>
141 - int main () {
142 - static int test_array [1 - 2 * !((sizeof(TYPE)) == LEN)];
143 - test_array [0] = 0;
144 - return test_array [0];
145 - }
146 - EOF
147 -
148 - local i=1
149 - while [[ ${i} -lt 20 ]] ; do
150 - if ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o /dev/null -DTYPE="$1" -DLEN=$i 2>/dev/null; then
151 - echo ${i}
152 - return 0
153 - fi
154 - : $(( i += 1 ))
155 - done
156 - return 1
157 -}
158 -
159 -src_configure() {
160 - use acl || export ac_cv_header_sys_acl_h="no"
161 - use caps || export ac_cv_lib_cap_cap_get_proc="no"
162 -
163 - # skip obsolete configure script
164 - if tc-is-cross-compiler ; then
165 - # Cache known values for targets. #486680
166 -
167 - tc-export CC
168 - local var val t types=(
169 - char "short int" int "long int" "long long"
170 - "unsigned char" "unsigned short int" "unsigned int"
171 - "unsigned long int" "unsigned long long"
172 - float double "long double" size_t ssize_t ptrdiff_t
173 - mode_t uid_t gid_t pid_t dev_t time_t wchar_t
174 - "char *" "unsigned char *"
175 - )
176 - for t in "${types[@]}" ; do
177 - var="ac_cv_sizeof_${t// /_}"
178 - var=${var//[*]/p}
179 - val=$(ac_cv_sizeof "${t}") || die "could not compute ${t}"
180 - export "${var}=${val}"
181 - einfo "Computing sizeof(${t}) as ${val}"
182 - done
183 - # We don't have these types.
184 - export ac_cv_sizeof___int64=0
185 - export ac_cv_sizeof_unsigned___int64=0
186 - export ac_cv_sizeof_major_t=${ac_cv_sizeof_dev_t}
187 - export ac_cv_sizeof_minor_t=${ac_cv_sizeof_dev_t}
188 - export ac_cv_sizeof_wchar=${ac_cv_sizeof_wchar_t}
189 -
190 - export ac_cv_type_prototypes="yes"
191 - export ac_cv_func_mlock{,all}="yes"
192 - export ac_cv_func_{e,f,g}cvt=$(usex elibc_glibc)
193 - export ac_cv_func_dtoa_r="no"
194 - export ac_cv_func_sys_siglist{,_def}="no"
195 - export ac_cv_func_printf_{j,ll}="yes"
196 - export ac_cv_realloc_null="yes"
197 - export ac_cv_no_user_malloc="no"
198 - export ac_cv_var_timezone="yes"
199 - export ac_cv_var___progname{,_full}="yes"
200 - export ac_cv_fnmatch_igncase="yes"
201 - export ac_cv_file__dev_{fd_{0,1,2},null,std{err,in,out},tty,zero}="yes"
202 - export ac_cv_file__usr_src_linux_include="no"
203 -
204 - case $(cdrtools_os) in
205 - linux)
206 - export ac_cv_func_bsd_{g,s}etpgrp="no"
207 - export ac_cv_hard_symlinks="yes"
208 - export ac_cv_link_nofollow="yes"
209 - export ac_cv_access_e_ok="no"
210 -
211 - export ac_cv_dev_minor_noncontig="yes"
212 - case ${ac_cv_sizeof_long_int} in
213 - 4) export ac_cv_dev_minor_bits="32";;
214 - 8) export ac_cv_dev_minor_bits="44";;
215 - esac
216 -
217 - cat <<-EOF >"${T}"/test.c
218 - struct {
219 - char start[6];
220 - unsigned char x1:4;
221 - unsigned char x2:4;
222 - char end[5];
223 - } a = {
224 - .start = {'S', 't', 'A', 'r', 'T', '_'},
225 - .x1 = 5,
226 - .x2 = 4,
227 - .end = {'_', 'e', 'N', 'd', 'X'},
228 - };
229 - EOF
230 - ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
231 - if grep -q 'StArT_E_eNdX' "${T}"/test.o ; then
232 - export ac_cv_c_bitfields_htol="no"
233 - elif grep -q 'StArT_T_eNdX' "${T}"/test.o ; then
234 - export ac_cv_c_bitfields_htol="yes"
235 - fi
236 - ;;
237 - esac
238 - fi
239 -}
240 -
241 -src_compile() {
242 - if use unicode; then
243 - local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)"
244 - if [[ -n ${flags} ]]; then
245 - append-flags ${flags}
246 - else
247 - ewarn "Your compiler does not support the options required to build"
248 - ewarn "cdrtools with unicode in USE. unicode flag will be ignored."
249 - fi
250 - fi
251 -
252 - # If not built with -j1, "sometimes" cdda2wav will not be built.
253 - emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
254 - LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true"
255 -}
256 -
257 -src_install() {
258 - # If not built with -j1, "sometimes" manpages are not installed.
259 - emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
260 - LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install
261 -
262 - # These symlinks are for compat with cdrkit.
263 - dosym schily /usr/include/scsilib
264 - dosym ../scg /usr/include/schily/scg
265 -
266 - dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
267 -
268 - cd "${S}"/cdda2wav || die
269 - docinto cdda2wav
270 - dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
271 -
272 - cd "${S}"/mkisofs || die
273 - docinto mkisofs
274 - dodoc ChangeLog* TODO
275 -
276 - # Remove man pages related to the build system
277 - rm -rvf "${ED}"/usr/share/man/man5 || die
278 -}
279 -
280 -pkg_postinst() {
281 - fcaps_pkg_postinst
282 -
283 - if [[ ${CHOST} == *-darwin* ]] ; then
284 - einfo
285 - einfo "Darwin/OS X use the following device names:"
286 - einfo
287 - einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices"
288 - einfo
289 - einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices"
290 - einfo
291 - fi
292 -}