diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2015-04-03 10:12:11 +0000 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2015-04-03 10:12:11 +0000 |
commit | 9582df44e9c132e79e11e52470a565bdf839ba96 (patch) | |
tree | c28cc43f5f1bad5cdda1cfd4fecba5298102269a /app-cdr | |
parent | Bump file-location to 0.4.7.1 (diff) | |
download | historical-9582df44e9c132e79e11e52470a565bdf839ba96.tar.gz historical-9582df44e9c132e79e11e52470a565bdf839ba96.tar.bz2 historical-9582df44e9c132e79e11e52470a565bdf839ba96.zip |
Version bump.
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0x215AD14D
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/cdrtools/ChangeLog | 8 | ||||
-rw-r--r-- | app-cdr/cdrtools/Manifest | 20 | ||||
-rw-r--r-- | app-cdr/cdrtools/cdrtools-3.01_alpha28.ebuild | 269 |
3 files changed, 282 insertions, 15 deletions
diff --git a/app-cdr/cdrtools/ChangeLog b/app-cdr/cdrtools/ChangeLog index cfdd57453518..a229f6f76b7f 100644 --- a/app-cdr/cdrtools/ChangeLog +++ b/app-cdr/cdrtools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-cdr/cdrtools # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.352 2015/02/25 22:21:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.353 2015/04/03 10:12:02 billie Exp $ + +*cdrtools-3.01_alpha28 (03 Apr 2015) + + 03 Apr 2015; Daniel Pielmeier <billie@gentoo.org> + +cdrtools-3.01_alpha28.ebuild: + Version bump. 25 Feb 2015; Mike Frysinger <vapier@gentoo.org> cdrtools-3.01_alpha27.ebuild: Enable verbose building so we can see the exact compile/link lines. diff --git a/app-cdr/cdrtools/Manifest b/app-cdr/cdrtools/Manifest index 717d13027077..2d1b015f9518 100644 --- a/app-cdr/cdrtools/Manifest +++ b/app-cdr/cdrtools/Manifest @@ -4,25 +4,17 @@ Hash: SHA256 DIST cdrtools-3.01a17.tar.bz2 2061522 SHA256 3d613965b213ad83e4be0ba2535e784901839ea4d11a20a2beb6765f0eb76dfa SHA512 34a0579c536028b030cf828441ad55a705472646bc3a1ae962aad234fbe0b12c2bcb670511487c17086f5ba7643d1b8ae42a4a86bfe2940dc94f9744377daa8b WHIRLPOOL b718d559e0b36a576a42a38f84b3917891450d0bbab47b084eb1e906a396cf28ce47b79fd16565d4e0697311ee0c3d5abdd95b52ba2d7ae4e9f32d9b26bc26e1 DIST cdrtools-3.01a24.tar.bz2 2075400 SHA256 4d9907b84f5b65dc6ca278b6202b90b8eb68652b01aa4dda978ffede8bdd4a5b SHA512 19be30de77fca00bb06fa6325149421304c1d5ff7d40a9d842496058494fcf0e798678c661ff3ae9ebc9e4c5971917f7aabfd813a6d88ff863d7e2e5f1456766 WHIRLPOOL 4533288dffef2b702eeef2a44fd702aff3e66283d5d90c810eb177ee4f1f1aa7cfd75238bf1f2a406e9b8ccaa43c7a77fb401825f8ce806e73fdc80abcc0a45a DIST cdrtools-3.01a27.tar.bz2 2079545 SHA256 71188d5a9ad61de440b07471e2612b937b5f9b456eae10efbdb012b6a9dfe3ca SHA512 bec2efd8989899cec58d39129f4bd8f0c42af34d65c575af48feea89a63c7eaf5064a885922730364879b325a9e0d6d78c2e3e7dc4ee5b06523da33f55333f72 WHIRLPOOL 5f722e7861452f6a216d9a4df9b5bd5c61b75056ba8503d1a489b42ce075bf24e469849f943bce180c46ce7030fdd1ce940a71fe7f17b2d585b6940c6abe87d9 +DIST cdrtools-3.01a28.tar.bz2 2081108 SHA256 3da9ad914cd5fb68037f7508cadfa05a31e3bb39c655b2dd0933345d44f86c7b SHA512 d703ba99bb9435006931ec8f7864137213d2a89d34611eb4a9e3d6fdaa438af55625da1a6d6005ac70a669f091d7133ff3565ce5be9dbd51723168887ae6baa5 WHIRLPOOL 98e7efbd24bf32dcf04e813127495a02494a2fccac14954f18e1e4843842008512dfe7dfd72c3e534ca0c1bb4ac46754d4479f229bff60e6877dc172c77cf58e EBUILD cdrtools-3.01_alpha17.ebuild 5237 SHA256 dd3795acba623f8e9c80c3c3acf287cc2c60aed3bee9325fb07d9e6edbfee47a SHA512 42b48b0e10ea809e5645f4f401a489fa591d1d083d4d8b0467b524fde723e37eca2ba9d2673c37f81bf247d63e0c0b795a0b9c6639c0f661613a5a52edc7edb5 WHIRLPOOL ba4ee8a0fc4f76d73aa09356bc2901e638a47bd339dc1c288e746a6966e0a24f6985616459b9b80f8043d632e86a43f4cd9d1fd97c8b9867ccb47d575b6b3a7a EBUILD cdrtools-3.01_alpha24.ebuild 7984 SHA256 2b4ccd4846adace696efccfbfe09aa492efc44b088d358d528ff6ea0fe94bd42 SHA512 31114f6343206ae9c427004743e683ab279fc9f64d06a5d3869a80e325b73da86f3b3322c7e1823d27b84952a5e4e0924abf6dda8035953f961071425534d1b0 WHIRLPOOL a91d38c8b24007b8d2fd9aaa21711dbda7bdd1f00298960f09728c4c580a14885358c263ac7113c8a126b95680d8db10adf9c5293e331c5b14a029166c9a261c EBUILD cdrtools-3.01_alpha27.ebuild 8124 SHA256 027baa75aeac8030d93cdcdbc8e6c00b944128e98b1690693b0e7e67dc62c6f8 SHA512 71f27df28b01d2d9098396d6effe50942def9d92134d924a42793beaec8c6fe82c1514c121db2fd2588b8f972e0f10c3099e26beb8aa91058a1cbbeef450dfcb WHIRLPOOL 0ac30880af9529eb943aa8399ab5995bedef13f34a72b4b2cc30a2e91dbca46d50886fc8f3168c5cb68bc6c98ff1d5c28d1e6aa165961269eb4ec6d2a088ced8 -MISC ChangeLog 54060 SHA256 cc871744b448fd300c7301cc4f8fb1a53880f0e895dd60892c9efc4f7e68ea8d SHA512 f45b972ee363bea42af0a2a0706244ba56ec527834604e7661ff962893ac2a151634bff7bfce333da485e52c63ffbae6f6f29ad31c349a32e84ab03a7b911d43 WHIRLPOOL 4bde97e478bd34b1208e844f2f3ae8f10b21488d5b4837983296c95379f715dee35c41c1308f204981f6697821c9a747c0366387380816a0ec5a195a2b00a4ac +EBUILD cdrtools-3.01_alpha28.ebuild 8124 SHA256 5c0f6e630450e00041d3390bc90a858c18483b8289c53f3ffd560d0423284da2 SHA512 8457e74afb0fa9a657b2b239c7d5d519b0c3c9722af0c6aba7bf8bc33882e09273e66bb2b9a5d87c81795cc3eb82ecf0e5c9cd61236c016cb5720253ffcd6d5c WHIRLPOOL 6542fdfaf5066c8537a9093b8787d423dd6b7346f190db13f394f6dc5d7f6761a77e68cf1c87afc9fecd773d24ceaa99335f36730de3c713f35772050b936b7a +MISC ChangeLog 54200 SHA256 aa8508ec14b811ab43705738bfeb1e73d2cc9f3b1f9c9e645779562753df8b94 SHA512 cdf8f6e8ac48d989850de7c05fc8982f25f22128a0bc128ca593daa01a06fa035217048d9820cf876d21565a72948e667bf37b15baf6eca9c3ea1e0221067281 WHIRLPOOL 435253c953adfd15f72a8cc9798988bc684be18b2cebc55cf2a518c3b1e8233883bad42cad5ace11d831fdc9bef5fc545fc4e3ea903e08bb2cd162b5ee0884f2 MISC metadata.xml 507 SHA256 f1086372c5bae26f9438544c1102cbadc619718b163392cbe35f3b359560ef3b SHA512 77aef4353064a013d1944ee796b1a6cb9a8a60c698d53df46cac7be17c556d9a495c71b9578a536c61c429a0c87e894e962bdca9167bbc60522ef25aeab756a6 WHIRLPOOL 0771499480bc135391ab921f22aba47f9966b68c79083f29f9df8c185919b65422f69953cc876d7dca8a2af5539b85e0c592f4521f5b4034ca5cb6035dc7c28b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJU7krvAAoJEPGu1DbS6WIAq/0P/2lHe/bRb+gDQCdFgOvSgKm0 -LJ4BmJyK8yVvlB05z42Mes0RSHHGaLgyZB7FemVqZfwz3jjQx1TS1p+b10hXA0qq -QBdqudtdwbUkj4hr7AZ7cPhSBtE0iaHRMfsg34GoWjjXdntjpzxQU4J9IqbZbRZ0 -LGMRlDub7QKMfWayOcNNVab5PhdKkmD7RrSenGNBUTDF/XxxxEOqQR+1pUeeEegF -73oIQnRDuuD7JL+P9iRVJhD/UE0SQdkuV8G1YnPiYH7Jvx67OEvPOSrfi1PbRza7 -AUpQ8Ql4li9H4q5Ct2ILVh3Ygcp7zlf+OGVXugO10OkpUjABTVVDtDjvmsIqT+1a -VM7IJFGXu1Ll2YwDRYD7gqGdN5hs9+EIUJX5Y95Su4sdqKDXEd+ZtHdbfraQUwiu -Xu0XxskJjQLYuU0JdBHaJ4qkvIA0Vwz+pAq6GM19/5FBwvNTOD34KFHhZxK1gIlK -HIWgnFnC4Zpai+coz92jpyH9tye3UcwDIHRGUF0bT2i66QOW0mbCK6F5x7eiciCZ -6esrOblfDKnEM0mKWIEkhCDa+PaqH5fAJfuvW7VeM5zit8NZYSQSf9PqfpRtoK9e -9FCGzfF/2dWniu59Q8BdLrqRNtQhLvK3apXFGti3xMpQtLxxzZNU7skbRr+RHJyL -4wSAxgh2GyMwXEBFnbF+ -=bsSG +iEYEAREIAAYFAlUeZ3sACgkQlcuUeyFa0U2CPQCg5csEH37bp82iV+zatOYxpYd3 +TzMAnjHja0bJINGK6+XkH/v7fI9rnrZz +=zRxC -----END PGP SIGNATURE----- diff --git a/app-cdr/cdrtools/cdrtools-3.01_alpha28.ebuild b/app-cdr/cdrtools/cdrtools-3.01_alpha28.ebuild new file mode 100644 index 000000000000..9b0553098005 --- /dev/null +++ b/app-cdr/cdrtools/cdrtools-3.01_alpha28.ebuild @@ -0,0 +1,269 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha28.ebuild,v 1.1 2015/04/03 10:12:02 billie Exp $ + +EAPI=5 + +inherit fcaps multilib eutils toolchain-funcs flag-o-matic gnuconfig + +MY_P="${P/_alpha/a}" + +DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord" +HOMEPAGE="http://sourceforge.net/projects/cdrtools/" +SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" +SLOT="0" +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" +IUSE="acl caps nls unicode" + +RDEPEND="acl? ( virtual/acl ) + caps? ( sys-libs/libcap ) + nls? ( virtual/libintl ) + !app-cdr/cdrkit" +DEPEND="${RDEPEND} + x11-misc/makedepend + nls? ( >=sys-devel/gettext-0.18.1.1 )" + +S=${WORKDIR}/${P/_alpha[0-9][0-9]} + +FILECAPS=( + 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 -- + cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav -- + cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd +) + +cdrtools_os() { + local os="linux" + [[ ${CHOST} == *-darwin* ]] && os="mac-os10" + [[ ${CHOST} == *-freebsd* ]] && os="freebsd" + echo "${os}" +} + +src_prepare() { + gnuconfig_update + + # Remove profiled make files. + find -name '*_p.mk' -delete + + # Adjusting hardcoded paths. + sed -i -e "s|opt/schily|usr|" \ + $(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \ + || die "sed opt/schily" + + sed -i -e "s|\(^INSDIR=\t\tshare/doc/\)|\1${PF}/|" \ + $(find ./ -type f -exec grep -l '^INSDIR.\+doc' '{}' '+') \ + || die "sed doc" + + # Respect libdir. + sed -i -e "s|\(^INSDIR=\t\t\)lib|\1$(get_libdir)|" \ + $(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \ + || die "sed multilib" + + # Do not install static libraries. + sed -i -e "s|include\t\t.*rules.lib||" \ + $(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \ + || die "sed rules" + + # Enable verbose build. + sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \ + RULES/*.rul RULES/rules.prg RULES/rules.inc \ + || die "sed verbose rules" + + # Respect CC/CXX variables. + cd "${S}"/RULES + local tcCC=$(tc-getCC) + local tcCXX=$(tc-getCXX) + sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \ + rules1.top || die "sed rules1.top" + sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \ + -e "/^CC++_COM_DEF=/s|g++|${tcCXX}|" \ + -e "/COPTOPT=/s|-O||" \ + -e 's|$(GCCOPTOPT)||' \ + cc-gcc.rul || die "sed cc-gcc.rul" + sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \ + rules.cnf || die "sed rules.cnf" + + # Add support for arm64 + ln -sf i586-linux-cc.rul aarch64-linux-cc.rul + ln -sf i586-linux-gcc.rul aarch64-linux-gcc.rul + + # Schily make setup. + cd "${S}"/DEFAULTS + local os=$(cdrtools_os) + + sed -i \ + -e "s|^\(DEFLINKMODE=\).*|\1\tdynamic|" \ + -e "s|^\(LINUX_INCL_PATH=\).*|\1|" \ + -e "s|^\(LDPATH=\).*|\1|" \ + -e "s|^\(RUNPATH=\).*|\1|" \ + -e "s|^\(INS_BASE=\).*|\1\t${ED}/usr|" \ + -e "s|^\(INS_RBASE=\).*|\1\t${ED}|" \ + -e "s|^\(DEFINSGRP=\).*|\1\t0|" \ + -e '/^DEFUMASK/s,002,022,g' \ + Defaults.${os} || die "sed Schily make setup" + # re DEFUMASK above: + # bug 486680: grsec TPE will block the exec if the directory is + # group-writable. This is painful with cdrtools, because it makes a bunch of + # group-writable directories during build. Change the umask on their + # creation to prevent this. +} + +ac_cv_sizeof() { + cat <<-EOF >"${T}"/test.c + #include <inttypes.h> + #include <stddef.h> + #include <stdint.h> + #include <sys/types.h> + int main () { + static int test_array [1 - 2 * !((sizeof(TYPE)) == LEN)]; + test_array [0] = 0; + return test_array [0]; + } + EOF + + local i=1 + while [[ ${i} -lt 20 ]] ; do + if ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o /dev/null -DTYPE="$1" -DLEN=$i 2>/dev/null; then + echo ${i} + return 0 + fi + : $(( i += 1 )) + done + return 1 +} + +src_configure() { + use acl || export ac_cv_header_sys_acl_h="no" + use caps || export ac_cv_lib_cap_cap_get_proc="no" + + # skip obsolete configure script + if tc-is-cross-compiler ; then + # Cache known values for targets. #486680 + + tc-export CC + local var val t types=( + char "short int" int "long int" "long long" + "unsigned char" "unsigned short int" "unsigned int" + "unsigned long int" "unsigned long long" + float double "long double" size_t ssize_t ptrdiff_t + mode_t uid_t gid_t pid_t dev_t time_t wchar_t + "char *" "unsigned char *" + ) + for t in "${types[@]}" ; do + var="ac_cv_sizeof_${t// /_}" + var=${var//[*]/p} + val=$(ac_cv_sizeof "${t}") || die "could not compute ${t}" + export "${var}=${val}" + einfo "Computing sizeof(${t}) as ${val}" + done + # We don't have these types. + export ac_cv_sizeof___int64=0 + export ac_cv_sizeof_unsigned___int64=0 + export ac_cv_sizeof_major_t=${ac_cv_sizeof_dev_t} + export ac_cv_sizeof_minor_t=${ac_cv_sizeof_dev_t} + export ac_cv_sizeof_wchar=${ac_cv_sizeof_wchar_t} + + export ac_cv_type_prototypes="yes" + export ac_cv_func_mlock{,all}="yes" + export ac_cv_func_{e,f,g}cvt=$(usex elibc_glibc) + export ac_cv_func_dtoa_r="no" + export ac_cv_func_sys_siglist{,_def}="no" + export ac_cv_func_printf_{j,ll}="yes" + export ac_cv_realloc_null="yes" + export ac_cv_no_user_malloc="no" + export ac_cv_var_timezone="yes" + export ac_cv_var___progname{,_full}="yes" + export ac_cv_fnmatch_igncase="yes" + export ac_cv_file__dev_{fd_{0,1,2},null,std{err,in,out},tty,zero}="yes" + export ac_cv_file__usr_src_linux_include="no" + + case $(cdrtools_os) in + linux) + export ac_cv_func_bsd_{g,s}etpgrp="no" + export ac_cv_hard_symlinks="yes" + export ac_cv_link_nofollow="yes" + export ac_cv_access_e_ok="no" + + export ac_cv_dev_minor_noncontig="yes" + case ${ac_cv_sizeof_long_int} in + 4) export ac_cv_dev_minor_bits="32";; + 8) export ac_cv_dev_minor_bits="44";; + esac + + cat <<-EOF >"${T}"/test.c + struct { + char start[6]; + unsigned char x1:4; + unsigned char x2:4; + char end[5]; + } a = { + .start = {'S', 't', 'A', 'r', 'T', '_'}, + .x1 = 5, + .x2 = 4, + .end = {'_', 'e', 'N', 'd', 'X'}, + }; + EOF + ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o + if grep -q 'StArT_E_eNdX' "${T}"/test.o ; then + export ac_cv_c_bitfields_htol="no" + elif grep -q 'StArT_T_eNdX' "${T}"/test.o ; then + export ac_cv_c_bitfields_htol="yes" + fi + ;; + esac + fi +} + +src_compile() { + if use unicode; then + local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)" + if [[ -n ${flags} ]]; then + append-flags ${flags} + else + ewarn "Your compiler does not support the options required to build" + ewarn "cdrtools with unicode in USE. unicode flag will be ignored." + fi + fi + + # If not built with -j1, "sometimes" cdda2wav will not be built. + emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ + LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" +} + +src_install() { + # If not built with -j1, "sometimes" manpages are not installed. + emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ + LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install + + # These symlinks are for compat with cdrkit. + dosym schily /usr/include/scsilib + dosym ../scg /usr/include/schily/scg + + dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux + + cd "${S}"/cdda2wav + docinto cdda2wav + dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO + + cd "${S}"/mkisofs + docinto mkisofs + dodoc ChangeLog* TODO + + # Remove man pages related to the build system + rm -rvf "${ED}"/usr/share/man/man5 +} + +pkg_postinst() { + fcaps_pkg_postinst + + if [[ ${CHOST} == *-darwin* ]] ; then + einfo + einfo "Darwin/OS X use the following device names:" + einfo + einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices" + einfo + einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices" + einfo + fi +} |