diff options
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/cdrtools/ChangeLog | 8 | ||||
-rw-r--r-- | app-cdr/cdrtools/Manifest | 26 | ||||
-rw-r--r-- | app-cdr/cdrtools/cdrtools-3.01_alpha30.ebuild | 269 |
3 files changed, 284 insertions, 19 deletions
diff --git a/app-cdr/cdrtools/ChangeLog b/app-cdr/cdrtools/ChangeLog index 735badb34c0a..f696148593c0 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.356 2015/06/09 09:23:34 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.357 2015/07/12 16:14:15 billie Exp $ + +*cdrtools-3.01_alpha30 (12 Jul 2015) + + 12 Jul 2015; Daniel Pielmeier <billie@gentoo.org> + +cdrtools-3.01_alpha30.ebuild: + Version bump. 09 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml: Updating remote-id in metadata.xml diff --git a/app-cdr/cdrtools/Manifest b/app-cdr/cdrtools/Manifest index de8365c68e4b..24c9dbda7e30 100644 --- a/app-cdr/cdrtools/Manifest +++ b/app-cdr/cdrtools/Manifest @@ -1,32 +1,22 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +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.01a28.tar.bz2 2081108 SHA256 3da9ad914cd5fb68037f7508cadfa05a31e3bb39c655b2dd0933345d44f86c7b SHA512 d703ba99bb9435006931ec8f7864137213d2a89d34611eb4a9e3d6fdaa438af55625da1a6d6005ac70a669f091d7133ff3565ce5be9dbd51723168887ae6baa5 WHIRLPOOL 98e7efbd24bf32dcf04e813127495a02494a2fccac14954f18e1e4843842008512dfe7dfd72c3e534ca0c1bb4ac46754d4479f229bff60e6877dc172c77cf58e DIST cdrtools-3.01a29.tar.bz2 2089455 SHA256 3ad98ea911a4ee7811ecfc433b70dac3a3b9671eb71a55da9f4a7e08cb6fc247 SHA512 f7c3eadc3e5f461e5767f12ef49e976ba3c88b4b61402d527606df4ebeb89db7205f23758c222e3f61ef036bfb4c972d3d3e0801efabcc40d6f34746f7348b95 WHIRLPOOL 5ef8c3e82f7f329082cd09f770bca070284e4ae1215ac341d8c80e38d3d1aa28f746a5e5c6dc4018107624524014ec6f88d8db2b114c1571a283aee2b8bd8b20 +DIST cdrtools-3.01a30.tar.bz2 2097525 SHA256 5b9a2f98771c9d0097a1e7640727655ece2864eea95f38e5611af2b2f6e6d9cd SHA512 a78809451e0e2b5ca94d0fc34db24ad002c2a1dd6a2dde0ecd6178a4da92c2974acf399dd8fe5dc246bbc7c32106116e957ce8d3ad20773c5909264346570025 WHIRLPOOL bd11ade4585626531cb3d0a59c88979e2d33ef1e1984611276b0e7d10d12a371bd7e4068c7e65c3d0d65b73002313fd63eb93e953a82cf130459bffa3326ee7c 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_alpha28.ebuild 8124 SHA256 5c0f6e630450e00041d3390bc90a858c18483b8289c53f3ffd560d0423284da2 SHA512 8457e74afb0fa9a657b2b239c7d5d519b0c3c9722af0c6aba7bf8bc33882e09273e66bb2b9a5d87c81795cc3eb82ecf0e5c9cd61236c016cb5720253ffcd6d5c WHIRLPOOL 6542fdfaf5066c8537a9093b8787d423dd6b7346f190db13f394f6dc5d7f6761a77e68cf1c87afc9fecd773d24ceaa99335f36730de3c713f35772050b936b7a EBUILD cdrtools-3.01_alpha29.ebuild 8124 SHA256 bf87a1e3db198fb4ba86e8cc0d6525ee5441d6ad948e6543580f8a82af02f9d7 SHA512 e9e4d335493f0dd6cb70eeea4c1906c9066609807775f759d39886d329ffbc4cd50f5b3f0e27b29109dee384a5ee2145010c6540f43bd37b92a91ef41deb71d5 WHIRLPOOL 3af7ee1c8b37a100b968509d1d595e82f260814e02637bdbc4ef2e168a56e66711fad8f6133bf85d58aa6e69f78ae4b9b2524e123adaf906831123bdbb605ce4 -MISC ChangeLog 54537 SHA256 1f9b0899bd24c24a32ab05c94729a5f97eba4131b796c8e627c51f2f3fce21a7 SHA512 d8ca96f14de3299d8c3fb0b63eae17b7afa3959e7542f4bffeec3041f60be2e852408f2c1cc292ecc6f4e07371a3e3e179ef5158466b17a6a2a6ab835b06251f WHIRLPOOL d928b4af188d975a6d2283ddd7f224cd44c8234c259bba0767d62b343c2be895ebd2b2ee2531384b458b5975a375bd1c622c769f5dfad7ff3101a861d61c96d6 +EBUILD cdrtools-3.01_alpha30.ebuild 8124 SHA256 de3c06e5e988c39ec6311500d6957c045167677049b6366dcfe8acd95702e8f2 SHA512 2bf7cef636e8a47e9926a2c0296f87433108d6d0b38e456283b2ba8e594e83761b1a5c2fcf0703837ca148ea1e87c9d794a1b407bcfa89656e915a9c16c7ceab WHIRLPOOL a81bd519b03c990d16eee2c6ff08920a7f5ba8ec00255c667cdf13b5950280d14fd79471284897d2f0d4c242ffe4a14c690c43ff07ff46fee5b9899b87c2d81e +MISC ChangeLog 54679 SHA256 d31b3c3a63370d27c0d11434a4af8335633c1c2c897c2b83f5e852831a1844e3 SHA512 7514d155781d2cd707306b3c4c397c277c72c2799bf590a112916a81d6b9ede5bbc74c6dc26b6b564b7e8832e38cf922b51c00f1d09ecef6b803daaa4be65442 WHIRLPOOL 0408c666fb4ce1f209928232b5133bea7d32599efa57b57eb173b66c54bad130ed27593dae187a10a79159f433a67864040b899fc954778395726a5ee52ade5a MISC metadata.xml 580 SHA256 4444c8c5f8c298629fc0620a369dc9ac5ddcd4fb1f684f24456c8b0c1f608c22 SHA512 2a19b92d9c3d6e6ce30fc760b445b382b81d6e64130a0935db1d86c0b64fde749d915840d223867901e77b583a98ddb3800931ccf6d99e4deff255ebdcbf3e3b WHIRLPOOL d655db614ca89e8a89df159b9a7250ccd10a53e770b09baaa06a484cd9b6f929056b83b34427950fb0c5523295940675e15ce8f9aca9886c5a25c4faf240b9f1 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0 +Version: GnuPG v2 -iQJ8BAEBCgBmBQJVdrCuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF -OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmirOAP/1sgsuzoO/MDqN6hs1pycjeF -RVz2pbmWu/yJMMNhLdk2VL05i0/Z2RX1lLzA4jXwL1Yl8bWtBKq4zAYkqjGI1A8+ -isB/kc1FGK9PJC8d8WkVRKjH6PQXtkcRXcA4ffqw7fpxtAITlFxy/Jc9MtwlJx8H -K+0XubLdBdgF32fur0N2AOV44jCdAlo0ltBbu5yMWMxTFqHO8h7uLfrSFEyMalQK -P9jONuJ1eXXE92vQ1hfNFl4ATv5mzBMjoLOQuxsizeamSKNlwd3qMIaDFnMSwrX0 -grt95VUJuDtfNOAD+MlZSAG7ep0J3ExpBfrnRiucapW15fOCzPB5MadSESdHUXyS -LPpn1Kr4dSdbbrTi2d+EuDuUHaG2q/qCtRllqfvuHWyktk887TcxFSL9l6lc/JgI -EHc/fFvZyUPC3b0skKw/S+yO2KwkOLgc838arvr+WLnGsVb5i5+adteuE9Ukia+R -DnbfyW1fesxgWH6pGOW/okgJ8MnKPXXJsfourI/up4lY6vWAlfeYgBifR6mLfDRu -I7o0omcpexUS7QssrEymoUTjChj+uGQYbVtDok5rDoNM861WRaUW9Sas8rggkAN8 -gxuRAidw9SEviV/BmWCVAOD+EppnAE7nCppYpunTHvWwQqxRO3paMr6KSEyiyCsE -ENeh8tmtk9QxC8LGxf+V -=OSgv +iEYEAREIAAYFAlWikl8ACgkQlcuUeyFa0U1OywCfT+R7UYMHM9FeezSXZUzr+u4K +CNgAni8K4IVf+tW9TPgPE4EpuBXvicMy +=7HWo -----END PGP SIGNATURE----- diff --git a/app-cdr/cdrtools/cdrtools-3.01_alpha30.ebuild b/app-cdr/cdrtools/cdrtools-3.01_alpha30.ebuild new file mode 100644 index 000000000000..ed33d1dbdea9 --- /dev/null +++ b/app-cdr/cdrtools/cdrtools-3.01_alpha30.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_alpha30.ebuild,v 1.1 2015/07/12 16:14:15 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 +} |