summaryrefslogtreecommitdiff
path: root/app-cdr
diff options
context:
space:
mode:
Diffstat (limited to 'app-cdr')
-rw-r--r--app-cdr/Manifest.gzbin7501 -> 7505 bytes
-rw-r--r--app-cdr/cdrdao/Manifest2
-rw-r--r--app-cdr/cdrdao/cdrdao-1.2.5-r1.ebuild55
-rw-r--r--app-cdr/cdrdao/files/cdrdao-1.2.5-fix-uninit.patch27
-rw-r--r--app-cdr/cdrtools/Manifest1
-rw-r--r--app-cdr/cdrtools/cdrtools-3.02_alpha09-r5.ebuild309
6 files changed, 394 insertions, 0 deletions
diff --git a/app-cdr/Manifest.gz b/app-cdr/Manifest.gz
index 1d8222e7d37c..8e8d395dd267 100644
--- a/app-cdr/Manifest.gz
+++ b/app-cdr/Manifest.gz
Binary files differ
diff --git a/app-cdr/cdrdao/Manifest b/app-cdr/cdrdao/Manifest
index 24a20247b2c4..e5f74f887348 100644
--- a/app-cdr/cdrdao/Manifest
+++ b/app-cdr/cdrdao/Manifest
@@ -1,8 +1,10 @@
AUX cdrdao-1.2.4-ax_pthread2.patch 15694 BLAKE2B 8619fd7ff18634fc6285fd02760b7869e498429810af3a3ad85b8b7b20deb8ffa13f34c210afa12837e4cec0fba6b0efa83e29a94d18871a6125a801f41f8231 SHA512 f3b3a0f52e4c77ac4e22deb216379732e5ce045cda472faf2b2e1aa49f1cfd44338a58e32d0086e4c2f701990e2193a25485e11728452de2a259cf83dc34f92b
AUX cdrdao-1.2.4-wformat-security.patch 4864 BLAKE2B fa300eefe5d714de0245a9e745d13f051dcbc14590efb33a367dd113474984618e62e347fc3cdc26a057169ff95bdde25b36d9b7bcb25aa9cdd5fd9b07a42ec1 SHA512 a40fd8c91fa207ad52f3cde9318fc4422f14aeea15bab4d2cd1e04d3f09a2fc2b666397cdbddc89245c97a6a98ac155c0ecf71c1e2993a366a21016bd337a33e
+AUX cdrdao-1.2.5-fix-uninit.patch 896 BLAKE2B 90aa33a9cac09eead05ff1c8293c6690982b1f1a948bf108b7f3423991bbf75369c149575406b4b341838d51e4e8da04eb9d23a9324ae1640b68ca4af9046bb9 SHA512 9ca4aec802260f2f21805d67cc1cb124ec88e71baafaf8e446388c3aa9f9b0aeadd2f224512fd464ab0f9b154ee5d2a56385150d90296c2f18b23666b491a55c
AUX cdrdao-1.2.5-remove-gconf-dep.patch 295 BLAKE2B 66c7a5233ac34aab33f2512b8e41cd3655c2028a92be46fa0cc2f3bff5d951f93bd94250a776ed8c44aa432cc3390d4cac96585f49a0f940fd018b526106cb28 SHA512 6c3a1a133a115ffa9f2b63d9240048794d3b20dda907aaeddac8ff663e563f1785a08f9613a179a62e515a26bf61fd3aeaa79cf2959694a82fbf45d1d7af7f8b
DIST cdrdao-1.2.4.tar.gz 1603363 BLAKE2B 9c22d21a391b6b1b6ded19f88506acd22e681a43ed91b1c71d20de27ce93cc74381d4efe8574adc929a189143c81f5838ca8d8227ec0e2e05a593f0df9547964 SHA512 decdc9d83fe380a4a05443ac26366eb3288d24bd7ed6c16d006707abb616dab91858a59af6638f2d7a72bc7bb6425dbfddd119ca492d18f07afbb27341b23d0b
DIST cdrdao-1.2.5.tar.gz 858440 BLAKE2B 6b7f11968335f3c07df2bfc8cbfd53d65a42413026206c47f9bdc792d30faa91f3e9285fd36d884ee42cb31103f666097fb55c8f382202f4e9d2d4ddd4685527 SHA512 790468a28e5ba96421c83c2101f61f479099782bc28677c7f52b94990de258e3caf7f77d3105e3e826d848b9488182880857335b1bcfbfca033d9e1fc56d193b
EBUILD cdrdao-1.2.4-r2.ebuild 1180 BLAKE2B 18f8d791a5018e77475b009a3a7c07e029c6eadd880cb4a886a243efd5cb4a3eefa3a55c58515b32bf8a766f0a925fb7fea0f475a844cab070771528fde8aa7a SHA512 2f818a1f810763acad9d610e009ece2eb96c9510c16ab436dd6e43364bcc6d7c019b5e4ce7dc9e552489833ee93ea1b3edcb04442adb1330b63db88fecef5d29
+EBUILD cdrdao-1.2.5-r1.ebuild 1168 BLAKE2B 2475207ec8ce0847197ef668b0ebbb00b4704a2672ffc6a65a3d75475582425446658563750c98014b1d98813aeefa7de54dac67ab1fa4a18b902dd6a64e1990 SHA512 bdf248d5c278471d4eabce7bd9bbf6e5a665e1a411b9ca7908af848f541a4433953b5e72385a60fd442993eb56674d0be74e3e37dabefe909d8beea6ad3cb2d9
EBUILD cdrdao-1.2.5.ebuild 1119 BLAKE2B 8b78ffabef785589fdbf2b233ae50b33eefec345e08695def3df676faa4d429eb727cd3aa94980b649d22eb04296ef7e43bad4b63afaec0100e1e0cd61d88d7c SHA512 c1b8ed19c7e997592634f0494887b44a09c6f94105fd0473d375d75258ad2f12ea2b9dd8bd4c196242895b621cce6c4997f96a00b636c0d855ab9b79d3b9d211
MISC metadata.xml 627 BLAKE2B 07ecffb902470b7bcc721b90a207d5c3fe929dc15476d21943bbe5cff0ae53438c049cadf7b23daa3b83d5d7dde7957f203af9c4c274aa1add31f0bd82248a72 SHA512 fbfcbf66c921c04a502dee9daff5df1ec73674e555511d15d2441288892bfb4427534063db224edcd148c1b79caefa4d864ded6cc02ac015239bc66fa656bc2c
diff --git a/app-cdr/cdrdao/cdrdao-1.2.5-r1.ebuild b/app-cdr/cdrdao/cdrdao-1.2.5-r1.ebuild
new file mode 100644
index 000000000000..d02a4e0c5b82
--- /dev/null
+++ b/app-cdr/cdrdao/cdrdao-1.2.5-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+MY_PV="rel_${PV//./_}"
+DESCRIPTION="Burn CDs in disk-at-once mode with a command line interface"
+HOMEPAGE="https://github.com/cdrdao/cdrdao/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv sparc ~x86"
+IUSE="encode mad vorbis"
+
+DEPEND="app-cdr/cdrtools
+ encode? ( >=media-sound/lame-3.99 )
+ mad? (
+ media-libs/libao
+ media-libs/libmad
+ )
+ vorbis? (
+ media-libs/libao
+ media-libs/libvorbis
+ )"
+RDEPEND="${DEPEND}
+ !app-cdr/cue2toc"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-remove-gconf-dep.patch"
+ "${FILESDIR}/${PN}-1.2.5-fix-uninit.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+
+ filter-lto # https://bugs.gentoo.org/854219
+
+ local myeconfargs=(
+ --without-gcdmaster
+ $(use_with vorbis ogg-support)
+ $(use_with mad mp3-support)
+ $(use_with encode lame)
+ )
+ econf "${myeconfargs[@]}"
+}
diff --git a/app-cdr/cdrdao/files/cdrdao-1.2.5-fix-uninit.patch b/app-cdr/cdrdao/files/cdrdao-1.2.5-fix-uninit.patch
new file mode 100644
index 000000000000..6748dba34cf6
--- /dev/null
+++ b/app-cdr/cdrdao/files/cdrdao-1.2.5-fix-uninit.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/915133
+https://github.com/cdrdao/cdrdao/issues/22
+https://github.com/cdrdao/cdrdao/pull/21
+
+From 251a40ab42305c412674c7c2d391374d91e91c95 Mon Sep 17 00:00:00 2001
+From: Ole Bertram <git@bertr.am>
+Date: Thu, 23 Mar 2023 17:08:48 +0100
+Subject: [PATCH] Fix uninitialized TOC data file name
+
+This caused spurious garbled TOC files and/or segfaults when not using
+the `--datafile` option.
+---
+ dao/main.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/dao/main.cc b/dao/main.cc
+index 8bf4590..d09fc69 100644
+--- a/dao/main.cc
++++ b/dao/main.cc
+@@ -219,6 +219,7 @@ DaoCommandLine::DaoCommandLine() :
+ fullBurn(false), withCddb(false), taoSource(false), keepImage(false), overburn(false),
+ writeSpeedControl(false), keep(false), printQuery(false), no_utf8(false)
+ {
++ dataFilename = NULL;
+ readingSpeed = -1;
+ writingSpeed = -1;
+ command = UNKNOWN;
diff --git a/app-cdr/cdrtools/Manifest b/app-cdr/cdrtools/Manifest
index 6ba12bd58de4..ba087dba288b 100644
--- a/app-cdr/cdrtools/Manifest
+++ b/app-cdr/cdrtools/Manifest
@@ -1,4 +1,5 @@
DIST cdrtools-3.02a09.tar.bz2 2156745 BLAKE2B 3e7a7ed65faffc67d53df8dff78562dd28f2e71bb01c36f9c57c033a4a812e6a5579a212322a15c8abb5c8005d38e6e9ba5a5bfab46d9a729a673aa8ce3425e7 SHA512 59c31186f163c7aaa96083efeb0bc31e697c5d53d3343ec487eddd90dc8df6cfee50a69859a64a7004585c73a081cc453cc647c563b32ef74070d075039342d4
EBUILD cdrtools-3.02_alpha09-r3.ebuild 8147 BLAKE2B 71ed8d1208439b18d98690015095b7da8fc2f5b146a42353e292561c8603453eca738aa77b81c4a367554c2c1d4c81b7480c7fe258ac90ff52bf5ee829b438c4 SHA512 2c22f53c3dd997836350788eec396f90abe04bb6ce77397488fc2256d2ec83f33391575a88c4e9b81daa47f9df493bcd5718c15a6fd03b13af0ffa2b493faa51
EBUILD cdrtools-3.02_alpha09-r4.ebuild 8978 BLAKE2B 8cd3771a41b785e1d9197c5ac2c311bf763d963d1aa2dffffab215e91eaf3e3cceb341bf452a84e99fe26cacd504c618d8603c515fcd0f1f64968b189bb156e9 SHA512 7e4261758b4710c85032397364b0066d8842b932f4faff6de655ad43b08575b6a48c18565e466ed34abbf94a7a122a23526405f8c3845368a604c8752d15d6c2
+EBUILD cdrtools-3.02_alpha09-r5.ebuild 9094 BLAKE2B e40a022acf2440cf50599f13d885482ddfd6131250e6e2c21df0444331944e482f86eba5531c4f4248eae4b17cd38dc2a62cc1530395c31fc4501a2fb35bb53e SHA512 92ea7bcfcf5f623f9d590457a0a3c420b628942c0c0755e2f85bb0d5e98c558f637401794ae18ddbe1c8475fdc46968644112df7f92a3866355b029bfd902632
MISC metadata.xml 445 BLAKE2B 43f12bca87633d1b039beed2fb401b652eafb937afc8a27d9d84885d306636bc29978beb17426dc782cb7c2e7ba9333b9346b6455fa72db2b778800f39995476 SHA512 c552eae00d8560d482fcb02799f064f5481e67ec12107760c841620db2d3023826377e186f5dc1b3555eea9b40964b4c7020b1deb82574ff1ff3ad7fd957bde9
diff --git a/app-cdr/cdrtools/cdrtools-3.02_alpha09-r5.ebuild b/app-cdr/cdrtools/cdrtools-3.02_alpha09-r5.ebuild
new file mode 100644
index 000000000000..203c2d333966
--- /dev/null
+++ b/app-cdr/cdrtools/cdrtools-3.02_alpha09-r5.ebuild
@@ -0,0 +1,309 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fcaps 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="https://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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="acl caps nls unicode selinux"
+
+BDEPEND="
+ nls? ( >=sys-devel/gettext-0.18.1.1 )
+ x11-misc/makedepend
+"
+RDEPEND="
+ acl? ( virtual/acl )
+ caps? ( sys-libs/libcap )
+ nls? ( virtual/libintl )
+ selinux? ( sec-policy/selinux-cdrecord )
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+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"
+ echo "${os}"
+}
+
+symlink_build_rules() {
+ local cputype="$1"
+ pushd "${S}"/RULES > /dev/null || die
+ ln -sf i586-linux-cc.rul "${cputype}"-linux-cc.rul || die
+ ln -sf i586-linux-clang.rul "${cputype}"-linux-clang.rul || die
+ ln -sf i586-linux-clang32.rul "${cputype}"-linux-clang32.rul || die
+ ln -sf i586-linux-clang64.rul "${cputype}"-linux-clang64.rul || die
+ ln -sf i586-linux-gcc.rul "${cputype}"-linux-gcc.rul || die
+ ln -sf i586-linux-gcc32.rul "${cputype}"-linux-gcc32.rul || die
+ ln -sf i586-linux-gcc64.rul "${cputype}"-linux-gcc64.rul || die
+ popd > /dev/null || die
+}
+
+src_prepare() {
+ default
+
+ gnuconfig_update
+
+ # bug #898582, bug #903876
+ append-flags -std=gnu89
+ # bug #884771
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ # Remove profiled make files.
+ find -name '*_p.mk' -delete || die "delete *_p.mk"
+
+ # 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"
+
+ # Don't quote $(MAKE)
+ sed -i -e 's|"$(MAKE)"|$(MAKE)|' \
+ $(find ./RULES -type f -exec grep -l '"$(MAKE)"' '{}' '+') \
+ || 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 || die
+ 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
+ symlink_build_rules aarch64_be
+
+ # fix RISC-V build err, bug 811375
+ symlink_build_rules riscv
+ symlink_build_rules riscv64
+
+ # Add support for loong
+ symlink_build_rules loongarch64
+
+ # Schily make setup.
+ cd "${S}"/DEFAULTS || die
+ 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"
+ export ac_cv_header_pulse_pulseaudio_h="no"
+ export ac_cv_header_alsa_asoundlib_h="no"
+ export ac_cv_lib_asound_snd_pcm_open="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 || die
+ docinto cdda2wav
+ dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
+
+ cd "${S}"/mkisofs || die
+ docinto mkisofs
+ dodoc ChangeLog* TODO
+
+ # Remove man pages related to the build system
+ rm -rvf "${ED}"/usr/share/man/man5 || die
+}
+
+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
+}