From e5fede359c49632b4dc04aa6b9a83331637d52a6 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sat, 12 Oct 2019 09:59:37 +0200 Subject: etcat, portage-bashrc-mv, schiliy-tools, zshrc-mv, sundtek-tv: Version bumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Väth --- app-portage/etcat/Manifest | 2 +- app-portage/etcat/etcat-1.0.1.ebuild | 39 -- app-portage/etcat/etcat-1.0.2.ebuild | 39 ++ app-portage/etcat/etcat-99999999.ebuild | 2 +- app-portage/portage-bashrc-mv/Manifest | 2 +- .../portage-bashrc-mv-17.3.ebuild | 55 --- .../portage-bashrc-mv-18.0.ebuild | 55 +++ app-shells/schily-tools/Manifest | 2 +- .../schily-tools/schily-tools-2019.08.13-r1.ebuild | 514 --------------------- .../schily-tools/schily-tools-2019.10.07.ebuild | 514 +++++++++++++++++++++ app-shells/zshrc-mv/Manifest | 2 +- app-shells/zshrc-mv/zshrc-mv-5.1.ebuild | 31 -- app-shells/zshrc-mv/zshrc-mv-5.2.ebuild | 31 ++ media-tv/sundtek-tv/Manifest | 2 +- .../sundtek-tv/sundtek-tv-190731.173415.ebuild | 202 -------- .../sundtek-tv/sundtek-tv-191002.223724.ebuild | 202 ++++++++ metadata/pkg_desc_index | 10 +- 17 files changed, 852 insertions(+), 852 deletions(-) delete mode 100644 app-portage/etcat/etcat-1.0.1.ebuild create mode 100644 app-portage/etcat/etcat-1.0.2.ebuild delete mode 100644 app-portage/portage-bashrc-mv/portage-bashrc-mv-17.3.ebuild create mode 100644 app-portage/portage-bashrc-mv/portage-bashrc-mv-18.0.ebuild delete mode 100644 app-shells/schily-tools/schily-tools-2019.08.13-r1.ebuild create mode 100644 app-shells/schily-tools/schily-tools-2019.10.07.ebuild delete mode 100644 app-shells/zshrc-mv/zshrc-mv-5.1.ebuild create mode 100644 app-shells/zshrc-mv/zshrc-mv-5.2.ebuild delete mode 100644 media-tv/sundtek-tv/sundtek-tv-190731.173415.ebuild create mode 100644 media-tv/sundtek-tv/sundtek-tv-191002.223724.ebuild diff --git a/app-portage/etcat/Manifest b/app-portage/etcat/Manifest index 470ffa54..c81e0462 100644 --- a/app-portage/etcat/Manifest +++ b/app-portage/etcat/Manifest @@ -1 +1 @@ -DIST etcat-1.0.1.tar.gz 40640 SHA512 1245828586253c156fc1a49ae5c2a13f9ee8238f934c40de2bdad87f48c7c0115cd1ea576ad1208edc523360a13e69aec430a3aaad64435ba97eadd8dbd94f61 +DIST etcat-1.0.2.tar.gz 40730 SHA512 3620742a0806ff23581aa20927c4df749d1942b682a5468e9882b269d1e9f27485d800f4f6cb256a979b1e9087414b7ee3f4e6351e0c5b961def914350d4d4ae diff --git a/app-portage/etcat/etcat-1.0.1.ebuild b/app-portage/etcat/etcat-1.0.1.ebuild deleted file mode 100644 index 882d85ad..00000000 --- a/app-portage/etcat/etcat-1.0.1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2016-2018 Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) - -case ${PV} in -99999999*) - EGIT_REPO_URI="https://github.com/proteusx/${PN}.git" - inherit git-r3 - PROPERTIES="live" - KEYWORDS="" - SRC_URI="";; -*) - RESTRICT="mirror" - SRC_URI="https://github.com/proteusx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -esac -inherit python-single-r1 - -DESCRIPTION="Updated version of an old Portage information extractor" -HOMEPAGE="https://github.com/proteusx/etcat/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="" - -RDEPEND="app-portage/gentoolkit[${PYTHON_USEDEP}]" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -src_prepare() { - python_fix_shebang "${S}" - default -} - -src_install() { - dobin "${PN}" -} diff --git a/app-portage/etcat/etcat-1.0.2.ebuild b/app-portage/etcat/etcat-1.0.2.ebuild new file mode 100644 index 00000000..42a82129 --- /dev/null +++ b/app-portage/etcat/etcat-1.0.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 2016-2019 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) + +case ${PV} in +99999999*) + EGIT_REPO_URI="https://github.com/proteusx/${PN}.git" + inherit git-r3 + PROPERTIES="live" + KEYWORDS="" + SRC_URI="";; +*) + RESTRICT="mirror" + SRC_URI="https://github.com/proteusx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +esac +inherit python-single-r1 + +DESCRIPTION="Updated version of an old Portage information extractor" +HOMEPAGE="https://github.com/proteusx/etcat/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +RDEPEND="app-portage/gentoolkit[${PYTHON_USEDEP}]" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + python_fix_shebang "${S}" + default +} + +src_install() { + dobin "${PN}" +} diff --git a/app-portage/etcat/etcat-99999999.ebuild b/app-portage/etcat/etcat-99999999.ebuild index 882d85ad..42a82129 100644 --- a/app-portage/etcat/etcat-99999999.ebuild +++ b/app-portage/etcat/etcat-99999999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2016-2018 Martin V\"ath +# Copyright 2016-2019 Martin V\"ath # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/app-portage/portage-bashrc-mv/Manifest b/app-portage/portage-bashrc-mv/Manifest index 226f750d..72b4bfdf 100644 --- a/app-portage/portage-bashrc-mv/Manifest +++ b/app-portage/portage-bashrc-mv/Manifest @@ -1 +1 @@ -DIST portage-bashrc-mv-17.3.tar.gz 18598 SHA512 07118af76b46f83d93d92be0241cfb691c20b48dc0d683f96b6679e064c0aa7346cc54cb6653982b8264ee1aad185bbce423bc0967a07b91b30ed22ddd829f6b +DIST portage-bashrc-mv-18.0.tar.gz 18880 SHA512 15ef9d0b9d627a45243cadb6516334402d160b26861ee8bdb7129e3fff020d33d5ad3e2d030463c8e95329bac77c8f8b51895696f3472b37f16e06e5dc0827bd diff --git a/app-portage/portage-bashrc-mv/portage-bashrc-mv-17.3.ebuild b/app-portage/portage-bashrc-mv/portage-bashrc-mv-17.3.ebuild deleted file mode 100644 index 9c3753fd..00000000 --- a/app-portage/portage-bashrc-mv/portage-bashrc-mv-17.3.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2011-2019 Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -RESTRICT="mirror" - -DESCRIPTION="Provide support for /etc/portage/bashrc.d and /etc/portage/package.cflags" -HOMEPAGE="https://github.com/vaeth/portage-bashrc-mv/" -SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+ccache +cflags +remove-la +title" - -# the ccache script would run without dev-util/ccache but would be pointless: -RDEPEND="ccache? ( >=dev-util/ccache-3.2 )" - -# The flags script would run without app-portage/eix, but package.cflags -# parsing would be much slower (and is almost not tested): -RDEPEND=${RDEPEND}" cflags? ( app-portage/eix )" - -# The title script would do nothing without these packages: -RDEPEND=${RDEPEND}" title? ( - >=app-portage/portage-utils-0.80_pre20190605 - app-shells/runtitle -)" - -src_install() { - dodoc AUTHORS NEWS README.md - exeinto "/usr/share/doc/${PF}" - doexe fix-portage-2.2.15 - docompress -x "/usr/share/doc/${PF}/fix-portage-2.2.15" - insinto /etc/portage - doins -r bashrc - insinto /etc/portage/bashrc.d - doins bashrc.d/[a-zA-Z]* - docompress /etc/portage/bashrc.d/README - ! use ccache || doins bashrc.d/*ccache* - ! use cflags || doins bashrc.d/*flag* - doins bashrc.d/*locale*purge* - ! use remove-la || doins bashrc.d/*remove*la* - ! use title || doins bashrc.d/*title* -} - -pkg_postinst() { - case " ${REPLACING_VERSIONS}" in - *' '[0-9].*|*' '1[0-2].*) - ewarn "Remember to run /usr/share/doc/${PF}/fix-portage-2.2.15" - ewarn "as the first command after upgrading to >=portage-2.2.15" - ewarn "See NEWS for details";; - esac - ! test -d /var/cache/gpo || \ - ewarn "Obsolete /var/cache/gpo found. Please remove" -} diff --git a/app-portage/portage-bashrc-mv/portage-bashrc-mv-18.0.ebuild b/app-portage/portage-bashrc-mv/portage-bashrc-mv-18.0.ebuild new file mode 100644 index 00000000..9c3753fd --- /dev/null +++ b/app-portage/portage-bashrc-mv/portage-bashrc-mv-18.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2011-2019 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +RESTRICT="mirror" + +DESCRIPTION="Provide support for /etc/portage/bashrc.d and /etc/portage/package.cflags" +HOMEPAGE="https://github.com/vaeth/portage-bashrc-mv/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+ccache +cflags +remove-la +title" + +# the ccache script would run without dev-util/ccache but would be pointless: +RDEPEND="ccache? ( >=dev-util/ccache-3.2 )" + +# The flags script would run without app-portage/eix, but package.cflags +# parsing would be much slower (and is almost not tested): +RDEPEND=${RDEPEND}" cflags? ( app-portage/eix )" + +# The title script would do nothing without these packages: +RDEPEND=${RDEPEND}" title? ( + >=app-portage/portage-utils-0.80_pre20190605 + app-shells/runtitle +)" + +src_install() { + dodoc AUTHORS NEWS README.md + exeinto "/usr/share/doc/${PF}" + doexe fix-portage-2.2.15 + docompress -x "/usr/share/doc/${PF}/fix-portage-2.2.15" + insinto /etc/portage + doins -r bashrc + insinto /etc/portage/bashrc.d + doins bashrc.d/[a-zA-Z]* + docompress /etc/portage/bashrc.d/README + ! use ccache || doins bashrc.d/*ccache* + ! use cflags || doins bashrc.d/*flag* + doins bashrc.d/*locale*purge* + ! use remove-la || doins bashrc.d/*remove*la* + ! use title || doins bashrc.d/*title* +} + +pkg_postinst() { + case " ${REPLACING_VERSIONS}" in + *' '[0-9].*|*' '1[0-2].*) + ewarn "Remember to run /usr/share/doc/${PF}/fix-portage-2.2.15" + ewarn "as the first command after upgrading to >=portage-2.2.15" + ewarn "See NEWS for details";; + esac + ! test -d /var/cache/gpo || \ + ewarn "Obsolete /var/cache/gpo found. Please remove" +} diff --git a/app-shells/schily-tools/Manifest b/app-shells/schily-tools/Manifest index 85dde754..3d9fd5a1 100644 --- a/app-shells/schily-tools/Manifest +++ b/app-shells/schily-tools/Manifest @@ -1 +1 @@ -DIST schily-2019-08-13.tar.bz2 4447359 SHA512 e69ed060aa5b5203b8af20834b9cceb0c4dc7be20b8d43d781c056f974ba67337415f512575461ee16504e6162311fc84fca9b83ae240c4102d2cfe95bfa9cd7 +DIST schily-2019-10-07.tar.bz2 4404621 SHA512 9d2ce93c104c1027fe96371929b7f78351248b2c73200b7762c7ce5b38ba680f0e8dae7d90d5ce83184a77a5d378890361f4b5c57383f601d0f11aafae5e430f diff --git a/app-shells/schily-tools/schily-tools-2019.08.13-r1.ebuild b/app-shells/schily-tools/schily-tools-2019.08.13-r1.ebuild deleted file mode 100644 index 3db6a402..00000000 --- a/app-shells/schily-tools/schily-tools-2019.08.13-r1.ebuild +++ /dev/null @@ -1,514 +0,0 @@ -# Copyright 2016-2019 Martin V\"ath and Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -RESTRICT="mirror" -inherit fcaps flag-o-matic gnuconfig required-use-warn toolchain-funcs - -MY_PV=${PV//./-} -MY_P="schily-${MY_PV}" -MY_P_TAR="${MY_P}.tar.bz2" -S=${WORKDIR}/${MY_P} - -SRC_URI="mirror://sourceforge/schilytools/${MY_P}.tar.bz2" -DESCRIPTION="Many tools from Joerg Schilling, including a POSIX compliant Bourne Shell" -HOMEPAGE="https://sourceforge.net/projects/schilytools/" -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 doc nls split-usr suid unicode xattr" -REQUIRED_USE_WARN="amd64-fbsd? ( !xattr )" - -PATCHES=("${FILESDIR}"/strlcat-mapvers.patch) - -add_iuse_expand() { - local i j - j=${1} - shift - for i - do case ${i} in - +*) - IUSE=${IUSE}" +${j}_${i#?}";; - *) - IUSE=${IUSE}" ${j}_${i}";; - esac - done -} -add_iuse_expand renameschily \ - +calc +compare +count +getopt +jsh +libschily +man2html +p -add_iuse_expand schilytools +bosh +calc +calltree +cdrtools \ - +change +compare +copy +count +cpp +cstyle +cut \ - +hdump label +lndir +man2html manmake +match +mdigest mountcd \ - +obosh +p +paste +patch +pbosh pxupgrade +sccs +sfind +smake +star \ - +termcap +translit +udiff +ved - -COMMON="!!app-cdr/cdrtools[-schily-tools(-)] -!!app-arch/star -!renameschily_libschily? ( !sys-apps/man ) -!renameschily_getopt? ( !sys-apps/man ) -schilytools_calc? ( - !renameschily_calc? ( !sci-mathematics/calc ) -) -schilytools_compare? ( - !renameschily_compare? ( - !media-gfx/imagemagick !media-gfx/graphicsmagick[imagemagick] - ) -) -schilytools_count? ( - !renameschily_count? ( !sys-devel/llvm ) -) -schilytools_bosh? ( - !renameschily_jsh? ( !app-shells/heirloom-sh ) -) -schilytools_man2html? ( - !renameschily_man2html? ( !sys-apps/man ) -) -schilytools_p? ( - !renameschily_p? ( !dev-util/wiggle ) -) -schilytools_translit? ( !dev-perl/Lingua-Translit ) -acl? ( virtual/acl ) -caps? ( sys-libs/libcap ) -nls? ( virtual/libintl ) -!amd64-fbsd? ( xattr? ( sys-apps/attr ) )" -DEPEND="${COMMON}" -RDEPEND="${COMMON}" -BDEPEND="nls? ( >=sys-devel/gettext-0.18.1.1 )" -LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" -SLOT="0" - -pkg_pretend() { - required-use-warn -} - -# Lot of this code is taken from app-cdr/cdrtools - -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_schily_prepare() ( - gnuconfig_update - - # This fixes a clash with clone() on uclibc. Upstream isn't - # going to include this so let's try to carry it forward. - # Contact me if it needs updating. Bug #486782. - # Anthony G. Basile . - use elibc_uclibc && eapply "${FILESDIR}"/${PN}-fix-clone-uclibc.patch - - # 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" - - # Respect libdir for defaults.smk - sed -i -e "s|/lib/|/$(get_libdir)/|" \ - smake/Makefile \ - || die "sed multilib for smake" - - # 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" - # -e "s|^\(DEFCCOM_DEF=\).*|\1\t${tcCC}|" \ - sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \ - -e "/^CC++_COM_DEF=/s|g[+][+]|${tcCXX}|" \ - -e "/COPTOPT=/s|-O||" \ - -e 's|[$][(]GCCOPTOPT[)]||' \ - -e 's|[$][(]GCC_OPTXX[)]||' \ - cc-gcc.rul || die "sed cc-gcc.rul" - sed -i -e "/^CC_COM_DEF=/s|clang|${tcCC}|" \ - -e "/^CC++_COM_DEF=/s|clang[+][+]|${tcCXX}|" \ - -e "/COPTOPT=/s|-O||" \ - -e 's|[$][(]CLANGOPTXX[)]||' \ - cc-clang.rul || die "sed cc-clang.rul" - sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \ - rules.cnf || die "sed rules.cnf" - - # 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 "s|^\(DEFCCOM=\).*|\1\t${tcCC}|" \ - -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. -) - -targets="" - -have_target() { - case " ${targets} " in - *" ${1} "*) - return 0;; - esac - return 1 -} - -targets() { - local i - for i - do have_target "${i}" && continue - mv -v UNUSED_TARGETS/??"${i}" TARGETS || die - targets=${targets}${targets:+\ }${i} - done -} - -src_prepare() { - filter-flags -fPIE -pie '-flto*' -fwhole-program -fno-common - src_schily_prepare - sed -i -e '1s!man1/sh\.1!man1/bosh.1!' -- "${S}/sh/"{jsh,pfsh}.1 || die - sed -i \ - -e '/-DDO_POSIX_SH/s/^[#]//' \ - -e '/-DDO_POSIX_PATH/s/^/\#/' \ - -e '/[+][=] -DPOSIX_BOSH_PATH/iCPPOPTS += -DPOSIX_BOSH_PATH=\\"'"${EPREFIX}"'/bin/sh\\"' \ - -- "${S}/sh/"Makefile || die - mkdir UNUSED_TARGETS || die - mv TARGETS/[0-9][0-9]* UNUSED_TARGETS || die - targets inc libfind - targets include libschily libmdigest - ! use schilytools_bosh || targets sh libxtermcap libshedit libgetopt - ! use schilytools_calc || targets calc - ! use schilytools_calltree || targets calltree - ! use schilytools_change || targets change - if use schilytools_cdrtools; then - targets btcflash cdda2wav cdrecord mkisofs 'mkisofs!@!diag' \ - libdeflt libscg 'libscg!@!scg' \ - readcd rscsi scgcheck scgskeleton \ - libcdrdeflt libedc libfile libhfs_iso libparanoia \ - librscg libscgcmd libsiconv 'libsiconv!@!tables' - fi - if ! use acl; then - sed -i -e 's/^CPPOPTS.*DUSE_ACL/#&/' -- star/Makefile || die - fi -# nonexistent: -# ! use schilytools_cmd || targets cmd - ! use schilytools_compare || targets compare - ! use schilytools_copy || targets copy - ! use schilytools_count || targets count - ! use schilytools_cpp || targets cpp - ! use schilytools_cstyle || targets cstyle - ! use schilytools_cut || targets cut - ! use schilytools_hdump || targets hdump - ! use schilytools_label || targets label - ! use schilytools_lndir || targets lndir - ! use schilytools_man2html || targets man2html - ! use schilytools_manmake || targets man - ! use schilytools_match || targets match - ! use schilytools_mdigest || targets mdigest - ! use schilytools_mountcd || targets mountcd - ! use schilytools_obosh || targets obosh libxtermcap libshedit libgetopt - ! use schilytools_p || targets p libxtermcap - ! use schilytools_paste || targets paste - ! use schilytools_patch || targets patch - ! use schilytools_pbosh || targets pbosh libxtermcap libshedit libgetopt - ! use schilytools_pxupgrade || targets libdeflt libscg pxupgrade - ! use schilytools_sccs || targets sccs libgetopt - ! use schilytools_sfind || targets sfind - ! use schilytools_smake || targets smake - if use schilytools_star; then - targets libdeflt librmt mt rmt star star_sym tartest - fi - ! use schilytools_termcap || targets termcap libxtermcap - ! use schilytools_translit || targets translit - ! use schilytools_udiff || targets udiff - ! use schilytools_ved || targets ved libxtermcap - default -} - -ac_cv_sizeof() { - cat <<-EOF >"${T}"/test.c - #include - #include - #include - #include - 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" - use xattr || export ac_cv_header_attr_xattr_h="no" - export ac_cv_header_pulse_pulseaudio_h="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 - append-flags -I"${S}"/libschily - emake CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ - LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" -} - -mustnothave() { - local i - for i; do - test -r "${ED}${i}" && die "${ED}${i} must not exist" - done -} - -mustremove() { - local i - for i; do - test -r "${ED}${i}" && rm -v -- "${ED}${i}" || \ - die "cannot remove ${ED}${i}" - done -} - -removedirs() { - local i - for i; do - ! test -d "${ED}${i}" || rm -rfv -- "${ED}${i}" || \ - die "cannot remove ${ED}${i}" - done -} - -src_install() { - local i - ! use doc || dodoc -r Schily.Copyright README.SSPM PORTING CONTRIBUTING \ - AN-????-??-?? ANNOUNCEMENTS READMEs/README.linux - emake CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ - LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install - find "${ED}" '(' -name '*.a' '-o' -name '*.so' ')' -delete || die - use suid || find "$ED" -perm /4000 -exec chmod -v -- -s '{}' '+' || die - if use schilytools_cdrtools; then - # These symlinks are for compat with cdrkit. - dosym schily /usr/include/scsilib - dosym ../scg /usr/include/schily/scg - - cd "${S}"/cdda2wav || die - docinto cdda2wav - dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO - - cd "${S}"/mkisofs || die - docinto mkisofs - dodoc ChangeLog* TODO - fi - removedirs /usr/include - if use schilytools_star; then - removedirs /usr/share/doc/star - mustremove /usr/bin/{gnu,}tar - mv -i -- "${ED}"/usr/sbin/rmt{,.star} || die - fi - if use schilytools_sccs; then - mv -v -- "${ED}"/usr/share/man/man1/{,sccs-}diff.1 || die - else - ! test -d "${ED}"/usr/ccs || rm -rfv -- "${ED}"/usr/ccs || die - mustnothave /usr/share/man/man1/diff.1 - fi - if use schilytools_hdump; then - mustremove /usr/bin/od /usr/share/man/man1/od.1 - else - mustnothave /usr/bin/od /usr/share/man/man1/od.1 - fi - if use schilytools_patch; then - mustremove /usr/share/man/man1/patch.1 - else - mustnothave /usr/share/man/man1/patch.1 - fi - if use schilytools_bosh; then - dodir bin || die - rm -v -- "${ED}"/usr/bin/{bo,j,pf}sh \ - "${ED}"/usr/share/man/man1/bosh.1 || die - rm -rfv -- "${ED}"/usr/xpg4 || die - mv -v -- "${ED}"/{usr/bin/sh,bin/bosh} || die - ln -s -- bosh "${ED}"/bin/jsh || die - ln -s -- bosh "${ED}"/bin/pfsh || die - mv -v -- "${ED}"/usr/share/man/man1/{,bo}sh.1 || die - if use renameschily_jsh; then - mv -v -- "${ED}"/bin/{,s}jsh || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}jsh.1 || die - fi - fi - if use schilytools_calc && use renameschily_calc; then - mv -v -- "${ED}"/usr/bin/{,s}calc || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}calc.1 || die - fi - if use schilytools_compare && use renameschily_compare; then - mv -v -- "${ED}"/usr/bin/{,s}compare || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}compare.1 || die - fi - if use schilytools_count && use renameschily_count; then - mv -v -- "${ED}"/usr/bin/{,s}count || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}count.1 || die - fi - if use schilytools_man2html && use renameschily_man2html; then - mv -v -- "${ED}"/usr/bin/{,s}man2html || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}man2html.1 || die - fi - if use schilytools_p && use renameschily_p; then - mv -v -- "${ED}"/usr/bin/{,s}p || die - mv -v -- "${ED}"/usr/share/man/man1/{,s}p.1 || die - fi - if use schilytools_ved; then - docompress -x /usr/share/man/help - fi - if use renameschily_libschily; then - for i in error fexecve fnmatch getline {,f,s}printf strlen; do - mv -v -- "${ED}"/usr/share/man/man3/{,schily-}${i}.3 || die - done - fi - if use renameschily_getopt && have_target libgetopt; then - mv -v -- "${ED}"/usr/share/man/man3/{,schily-}getopt.3 || die - fi - use split-usr || move_to_usr_bin "${ED}"/bin/* -} - -move_to_usr_bin() { - test -r "$1" || return 0 - test -d "${ED}"/usr/bin || mkdir -p -- "${ED}"/usr/bin || die - mv -v -- "$@" "${ED}"/usr/bin || die - rmdir "${ED}"/bin || die -} - -pkg_postinst() { - use schilytools_cdrtools || return 0 - 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 -} diff --git a/app-shells/schily-tools/schily-tools-2019.10.07.ebuild b/app-shells/schily-tools/schily-tools-2019.10.07.ebuild new file mode 100644 index 00000000..3db6a402 --- /dev/null +++ b/app-shells/schily-tools/schily-tools-2019.10.07.ebuild @@ -0,0 +1,514 @@ +# Copyright 2016-2019 Martin V\"ath and Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +RESTRICT="mirror" +inherit fcaps flag-o-matic gnuconfig required-use-warn toolchain-funcs + +MY_PV=${PV//./-} +MY_P="schily-${MY_PV}" +MY_P_TAR="${MY_P}.tar.bz2" +S=${WORKDIR}/${MY_P} + +SRC_URI="mirror://sourceforge/schilytools/${MY_P}.tar.bz2" +DESCRIPTION="Many tools from Joerg Schilling, including a POSIX compliant Bourne Shell" +HOMEPAGE="https://sourceforge.net/projects/schilytools/" +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 doc nls split-usr suid unicode xattr" +REQUIRED_USE_WARN="amd64-fbsd? ( !xattr )" + +PATCHES=("${FILESDIR}"/strlcat-mapvers.patch) + +add_iuse_expand() { + local i j + j=${1} + shift + for i + do case ${i} in + +*) + IUSE=${IUSE}" +${j}_${i#?}";; + *) + IUSE=${IUSE}" ${j}_${i}";; + esac + done +} +add_iuse_expand renameschily \ + +calc +compare +count +getopt +jsh +libschily +man2html +p +add_iuse_expand schilytools +bosh +calc +calltree +cdrtools \ + +change +compare +copy +count +cpp +cstyle +cut \ + +hdump label +lndir +man2html manmake +match +mdigest mountcd \ + +obosh +p +paste +patch +pbosh pxupgrade +sccs +sfind +smake +star \ + +termcap +translit +udiff +ved + +COMMON="!!app-cdr/cdrtools[-schily-tools(-)] +!!app-arch/star +!renameschily_libschily? ( !sys-apps/man ) +!renameschily_getopt? ( !sys-apps/man ) +schilytools_calc? ( + !renameschily_calc? ( !sci-mathematics/calc ) +) +schilytools_compare? ( + !renameschily_compare? ( + !media-gfx/imagemagick !media-gfx/graphicsmagick[imagemagick] + ) +) +schilytools_count? ( + !renameschily_count? ( !sys-devel/llvm ) +) +schilytools_bosh? ( + !renameschily_jsh? ( !app-shells/heirloom-sh ) +) +schilytools_man2html? ( + !renameschily_man2html? ( !sys-apps/man ) +) +schilytools_p? ( + !renameschily_p? ( !dev-util/wiggle ) +) +schilytools_translit? ( !dev-perl/Lingua-Translit ) +acl? ( virtual/acl ) +caps? ( sys-libs/libcap ) +nls? ( virtual/libintl ) +!amd64-fbsd? ( xattr? ( sys-apps/attr ) )" +DEPEND="${COMMON}" +RDEPEND="${COMMON}" +BDEPEND="nls? ( >=sys-devel/gettext-0.18.1.1 )" +LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" +SLOT="0" + +pkg_pretend() { + required-use-warn +} + +# Lot of this code is taken from app-cdr/cdrtools + +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_schily_prepare() ( + gnuconfig_update + + # This fixes a clash with clone() on uclibc. Upstream isn't + # going to include this so let's try to carry it forward. + # Contact me if it needs updating. Bug #486782. + # Anthony G. Basile . + use elibc_uclibc && eapply "${FILESDIR}"/${PN}-fix-clone-uclibc.patch + + # 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" + + # Respect libdir for defaults.smk + sed -i -e "s|/lib/|/$(get_libdir)/|" \ + smake/Makefile \ + || die "sed multilib for smake" + + # 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" + # -e "s|^\(DEFCCOM_DEF=\).*|\1\t${tcCC}|" \ + sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \ + -e "/^CC++_COM_DEF=/s|g[+][+]|${tcCXX}|" \ + -e "/COPTOPT=/s|-O||" \ + -e 's|[$][(]GCCOPTOPT[)]||' \ + -e 's|[$][(]GCC_OPTXX[)]||' \ + cc-gcc.rul || die "sed cc-gcc.rul" + sed -i -e "/^CC_COM_DEF=/s|clang|${tcCC}|" \ + -e "/^CC++_COM_DEF=/s|clang[+][+]|${tcCXX}|" \ + -e "/COPTOPT=/s|-O||" \ + -e 's|[$][(]CLANGOPTXX[)]||' \ + cc-clang.rul || die "sed cc-clang.rul" + sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \ + rules.cnf || die "sed rules.cnf" + + # 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 "s|^\(DEFCCOM=\).*|\1\t${tcCC}|" \ + -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. +) + +targets="" + +have_target() { + case " ${targets} " in + *" ${1} "*) + return 0;; + esac + return 1 +} + +targets() { + local i + for i + do have_target "${i}" && continue + mv -v UNUSED_TARGETS/??"${i}" TARGETS || die + targets=${targets}${targets:+\ }${i} + done +} + +src_prepare() { + filter-flags -fPIE -pie '-flto*' -fwhole-program -fno-common + src_schily_prepare + sed -i -e '1s!man1/sh\.1!man1/bosh.1!' -- "${S}/sh/"{jsh,pfsh}.1 || die + sed -i \ + -e '/-DDO_POSIX_SH/s/^[#]//' \ + -e '/-DDO_POSIX_PATH/s/^/\#/' \ + -e '/[+][=] -DPOSIX_BOSH_PATH/iCPPOPTS += -DPOSIX_BOSH_PATH=\\"'"${EPREFIX}"'/bin/sh\\"' \ + -- "${S}/sh/"Makefile || die + mkdir UNUSED_TARGETS || die + mv TARGETS/[0-9][0-9]* UNUSED_TARGETS || die + targets inc libfind + targets include libschily libmdigest + ! use schilytools_bosh || targets sh libxtermcap libshedit libgetopt + ! use schilytools_calc || targets calc + ! use schilytools_calltree || targets calltree + ! use schilytools_change || targets change + if use schilytools_cdrtools; then + targets btcflash cdda2wav cdrecord mkisofs 'mkisofs!@!diag' \ + libdeflt libscg 'libscg!@!scg' \ + readcd rscsi scgcheck scgskeleton \ + libcdrdeflt libedc libfile libhfs_iso libparanoia \ + librscg libscgcmd libsiconv 'libsiconv!@!tables' + fi + if ! use acl; then + sed -i -e 's/^CPPOPTS.*DUSE_ACL/#&/' -- star/Makefile || die + fi +# nonexistent: +# ! use schilytools_cmd || targets cmd + ! use schilytools_compare || targets compare + ! use schilytools_copy || targets copy + ! use schilytools_count || targets count + ! use schilytools_cpp || targets cpp + ! use schilytools_cstyle || targets cstyle + ! use schilytools_cut || targets cut + ! use schilytools_hdump || targets hdump + ! use schilytools_label || targets label + ! use schilytools_lndir || targets lndir + ! use schilytools_man2html || targets man2html + ! use schilytools_manmake || targets man + ! use schilytools_match || targets match + ! use schilytools_mdigest || targets mdigest + ! use schilytools_mountcd || targets mountcd + ! use schilytools_obosh || targets obosh libxtermcap libshedit libgetopt + ! use schilytools_p || targets p libxtermcap + ! use schilytools_paste || targets paste + ! use schilytools_patch || targets patch + ! use schilytools_pbosh || targets pbosh libxtermcap libshedit libgetopt + ! use schilytools_pxupgrade || targets libdeflt libscg pxupgrade + ! use schilytools_sccs || targets sccs libgetopt + ! use schilytools_sfind || targets sfind + ! use schilytools_smake || targets smake + if use schilytools_star; then + targets libdeflt librmt mt rmt star star_sym tartest + fi + ! use schilytools_termcap || targets termcap libxtermcap + ! use schilytools_translit || targets translit + ! use schilytools_udiff || targets udiff + ! use schilytools_ved || targets ved libxtermcap + default +} + +ac_cv_sizeof() { + cat <<-EOF >"${T}"/test.c + #include + #include + #include + #include + 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" + use xattr || export ac_cv_header_attr_xattr_h="no" + export ac_cv_header_pulse_pulseaudio_h="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 + append-flags -I"${S}"/libschily + emake CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ + LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" +} + +mustnothave() { + local i + for i; do + test -r "${ED}${i}" && die "${ED}${i} must not exist" + done +} + +mustremove() { + local i + for i; do + test -r "${ED}${i}" && rm -v -- "${ED}${i}" || \ + die "cannot remove ${ED}${i}" + done +} + +removedirs() { + local i + for i; do + ! test -d "${ED}${i}" || rm -rfv -- "${ED}${i}" || \ + die "cannot remove ${ED}${i}" + done +} + +src_install() { + local i + ! use doc || dodoc -r Schily.Copyright README.SSPM PORTING CONTRIBUTING \ + AN-????-??-?? ANNOUNCEMENTS READMEs/README.linux + emake CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \ + LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install + find "${ED}" '(' -name '*.a' '-o' -name '*.so' ')' -delete || die + use suid || find "$ED" -perm /4000 -exec chmod -v -- -s '{}' '+' || die + if use schilytools_cdrtools; then + # These symlinks are for compat with cdrkit. + dosym schily /usr/include/scsilib + dosym ../scg /usr/include/schily/scg + + cd "${S}"/cdda2wav || die + docinto cdda2wav + dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO + + cd "${S}"/mkisofs || die + docinto mkisofs + dodoc ChangeLog* TODO + fi + removedirs /usr/include + if use schilytools_star; then + removedirs /usr/share/doc/star + mustremove /usr/bin/{gnu,}tar + mv -i -- "${ED}"/usr/sbin/rmt{,.star} || die + fi + if use schilytools_sccs; then + mv -v -- "${ED}"/usr/share/man/man1/{,sccs-}diff.1 || die + else + ! test -d "${ED}"/usr/ccs || rm -rfv -- "${ED}"/usr/ccs || die + mustnothave /usr/share/man/man1/diff.1 + fi + if use schilytools_hdump; then + mustremove /usr/bin/od /usr/share/man/man1/od.1 + else + mustnothave /usr/bin/od /usr/share/man/man1/od.1 + fi + if use schilytools_patch; then + mustremove /usr/share/man/man1/patch.1 + else + mustnothave /usr/share/man/man1/patch.1 + fi + if use schilytools_bosh; then + dodir bin || die + rm -v -- "${ED}"/usr/bin/{bo,j,pf}sh \ + "${ED}"/usr/share/man/man1/bosh.1 || die + rm -rfv -- "${ED}"/usr/xpg4 || die + mv -v -- "${ED}"/{usr/bin/sh,bin/bosh} || die + ln -s -- bosh "${ED}"/bin/jsh || die + ln -s -- bosh "${ED}"/bin/pfsh || die + mv -v -- "${ED}"/usr/share/man/man1/{,bo}sh.1 || die + if use renameschily_jsh; then + mv -v -- "${ED}"/bin/{,s}jsh || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}jsh.1 || die + fi + fi + if use schilytools_calc && use renameschily_calc; then + mv -v -- "${ED}"/usr/bin/{,s}calc || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}calc.1 || die + fi + if use schilytools_compare && use renameschily_compare; then + mv -v -- "${ED}"/usr/bin/{,s}compare || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}compare.1 || die + fi + if use schilytools_count && use renameschily_count; then + mv -v -- "${ED}"/usr/bin/{,s}count || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}count.1 || die + fi + if use schilytools_man2html && use renameschily_man2html; then + mv -v -- "${ED}"/usr/bin/{,s}man2html || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}man2html.1 || die + fi + if use schilytools_p && use renameschily_p; then + mv -v -- "${ED}"/usr/bin/{,s}p || die + mv -v -- "${ED}"/usr/share/man/man1/{,s}p.1 || die + fi + if use schilytools_ved; then + docompress -x /usr/share/man/help + fi + if use renameschily_libschily; then + for i in error fexecve fnmatch getline {,f,s}printf strlen; do + mv -v -- "${ED}"/usr/share/man/man3/{,schily-}${i}.3 || die + done + fi + if use renameschily_getopt && have_target libgetopt; then + mv -v -- "${ED}"/usr/share/man/man3/{,schily-}getopt.3 || die + fi + use split-usr || move_to_usr_bin "${ED}"/bin/* +} + +move_to_usr_bin() { + test -r "$1" || return 0 + test -d "${ED}"/usr/bin || mkdir -p -- "${ED}"/usr/bin || die + mv -v -- "$@" "${ED}"/usr/bin || die + rmdir "${ED}"/bin || die +} + +pkg_postinst() { + use schilytools_cdrtools || return 0 + 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 +} diff --git a/app-shells/zshrc-mv/Manifest b/app-shells/zshrc-mv/Manifest index e076aa27..5aefd5ef 100644 --- a/app-shells/zshrc-mv/Manifest +++ b/app-shells/zshrc-mv/Manifest @@ -1 +1 @@ -DIST zshrc-mv-5.1.tar.gz 12841 SHA512 f05116ee4650eca1674ad9a13be8f573ad99bd1d7ae689edc83a8e49f04b1a45f5a45724df11efd47470b4e53f1c3f29db6d900fb07e6f07c211d24d8fb58ee6 +DIST zshrc-mv-5.2.tar.gz 12830 SHA512 b85a4491e3b36c1bd613f4096b8ed6b801fc230edd38f6e162f42b45a0a06a5009d25638047e8b48950ec4e526754f2c26f01850f21b7deea3f2894cbcb74c70 diff --git a/app-shells/zshrc-mv/zshrc-mv-5.1.ebuild b/app-shells/zshrc-mv/zshrc-mv-5.1.ebuild deleted file mode 100644 index 1b8802d7..00000000 --- a/app-shells/zshrc-mv/zshrc-mv-5.1.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2013-2019 Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -RESTRICT="mirror" - -DESCRIPTION="A zshrc file initializing zsh specific interactive features" -HOMEPAGE="https://github.com/vaeth/zshrc-mv/" -SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="CC-BY-4.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -# These should really depend on USE-flags but must not by policy. -# Waiting for https://bugs.gentoo.org/show_bug.cgi?id=424283 -OPTIONAL_RDEPEND=">=app-shells/auto-fu-zsh-0.0.1.12_p0 ->=app-shells/set_prompt-3.0.0 -app-shells/termcolors-mv -app-shells/zsh-autosuggestions -|| ( app-shells/fast-syntax-highlighting app-shells/zsh-syntax-highlighting )" - -RDEPEND="!app-shells/auto-fu-zsh[kill-line(-)] - ${OPTIONAL_RDEPEND}" - -src_install() { - dodoc README.md - insinto /etc/zsh - doins zshrc -} diff --git a/app-shells/zshrc-mv/zshrc-mv-5.2.ebuild b/app-shells/zshrc-mv/zshrc-mv-5.2.ebuild new file mode 100644 index 00000000..1b8802d7 --- /dev/null +++ b/app-shells/zshrc-mv/zshrc-mv-5.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 2013-2019 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +RESTRICT="mirror" + +DESCRIPTION="A zshrc file initializing zsh specific interactive features" +HOMEPAGE="https://github.com/vaeth/zshrc-mv/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC-BY-4.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +# These should really depend on USE-flags but must not by policy. +# Waiting for https://bugs.gentoo.org/show_bug.cgi?id=424283 +OPTIONAL_RDEPEND=">=app-shells/auto-fu-zsh-0.0.1.12_p0 +>=app-shells/set_prompt-3.0.0 +app-shells/termcolors-mv +app-shells/zsh-autosuggestions +|| ( app-shells/fast-syntax-highlighting app-shells/zsh-syntax-highlighting )" + +RDEPEND="!app-shells/auto-fu-zsh[kill-line(-)] + ${OPTIONAL_RDEPEND}" + +src_install() { + dodoc README.md + insinto /etc/zsh + doins zshrc +} diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest index 05f5bc81..9697eec7 100644 --- a/media-tv/sundtek-tv/Manifest +++ b/media-tv/sundtek-tv/Manifest @@ -1 +1 @@ -DIST sundtek_installer_190731.173415.sh 39615596 SHA512 eee68c88defa1477e115adb940307d3f67fdb8bad2fa520543afd0f15e4ac2fa902f008329e9186c1e89bb8024f037c40032056f5be45fc8d312616d5a2d9959 +DIST sundtek_installer_191002.223724.sh 39618364 SHA512 9953b42c5d5e1b1fb250fab126be79d9df7c155ee2e6bef45a280c16ab0bfec6240979e2bc4ae8ad87bd6b483726176ec6feebdd09b9f3bc64aaa5e22c99eb6b diff --git a/media-tv/sundtek-tv/sundtek-tv-190731.173415.ebuild b/media-tv/sundtek-tv/sundtek-tv-190731.173415.ebuild deleted file mode 100644 index 1c20efcf..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-190731.173415.ebuild +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright 2014-2019 Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit linux-info pax-utils readme.gentoo-r1 systemd unpacker - -# The following variable is only for testing purposes. Leave it to "false" -keep_original=false - -DESCRIPTION="Sundtek MediaTV Pro III Drivers" -HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html -http://sundtek.de/media/latest.phtml" -SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" - -RESTRICT="binchecks mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="ld-preload-env +ld-preload-file pax_kernel pulseaudio split-usr" -RDEPEND="!"${mypkgconfig}/libmedia.pc" || die - sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ - etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die - ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || - sed -i -e "s/^\([^#]\)/#\1/" etc/udev/rules.d/80-mediasrv-eeti.rules \ - || die - rm etc/systemd/system/multi-user.target.wants/sundtek.service || die - rmdir etc/systemd/system/multi-user.target.wants || die - rmdir etc/systemd/system || die - rmdir etc/systemd || die - mv etc/udev/rules.d/80-mediasrv.rules etc/hal . || die - mv etc/udev "${myudev}" || die - mv 1/doc/hardware.conf 1/doc/sundtek.conf "${mylirc}" || die - rm 1/doc/lirc_install.sh 1/doc/libmedia.pc || die - mv 1/doc/*.service "${S}" || die - mkdir "${S}/doc" && mkdir "${S}/doc/bin" || die - mv 1/doc/README 1/doc/*.conf "${S}/doc" || die - mv 1/doc/*.cgi "${S}/doc/bin" || die - rm etc/ld.so.conf.d/optlib.conf && rmdir etc/ld.so.conf.d || die - rmdir 1/doc || die "${S}/1/doc contains files not known to the ebuild" - rmdir 1 || die "${S}/1 contains files not known to the ebuild" - my_movlibdir "${mylibdir}" - mkdir etc/revdep-rebuild || die - echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${mybinprefix}/bin/audio/libpulse.so\"" \ - >etc/revdep-rebuild/50-sundtek-tv - if use ld-preload-file - then echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload - else sed -i -e 's/preload:-NO/preload:-YES/' sundtek.initd - fi - sed -i -e "s'preload_lib:-/usr/lib'preload_lib:-/${mylibdir}'" sundtek.initd - if use ld-preload-env - then mkdir etc/env.d - echo "LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\"" >etc/env.d/50sundtek-tv - fi - DOC_CONTENTS="${DOC_CONTENTS} -You have to put /${mylibdir}/libmediaclient.so into /etc/ld.so.preload -or to export LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\" -before you start a multimedia applications like mplayer or mpv which should -be able to access the sundtek device. - -This happens with USE=ld-preload-file or with ld-preload-env (in the global -environment), respectively. - -However, such a global setting in some cases this gives warnings when -32-bit applications are used. - -Thus, it might be a good idea to do it only locally by writing -corresponding wrapper scripts for those multimedia applications you -want to use with sundtek-tv. -" - ln -sfn mediaclient.video mediaclient.audio - ln -sfn mediaclient.video mediaclient.dvb - default -} - -src_install() { - insinto / - local i - for i in etc lib64 lib32 lib usr opt - do test -d "${i}" && mv -- "${i}" "${ED}" - done - for i in "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) "${ED}"/opt - do test -d "${i}" && chmod -R 755 "${i}" - done - if ! ${keep_original} - then newinitd sundtek.initd sundtek - systemd_dounit *.service - dodoc doc/README doc/*.conf - mv -- doc/bin "${ED}/usr/share/doc/${PF}" || die - docompress -x "/usr/share/doc/${PF}/bin" - fi - dobin mediaclient.video - insinto /usr/bin - doins mediaclient.dvb mediaclient.audio - insinto /usr/share/zsh/site-functions - doins _mediaclient - readme.gentoo_create_doc -} - -pkg_pretend() { - local CONFIG_CHECK="~INPUT_UINPUT" - check_extra_config -} - -pkg_postinst() { - einfo "Adding root to the audio group" - usermod -aG audio root || { - ewarn "Could not add root to the audio group." - ewarn "You should do this manually if you have problems with sound" - } - false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ - elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" - if ! use ld-preload-file - then if use ld-preload-env - then elog "You might have to call env-update and source /etc/profile" - else elog "You need to set LD_PRELOAD locally, see" - elog "${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" - fi - fi - readme.gentoo_print_elog -} diff --git a/media-tv/sundtek-tv/sundtek-tv-191002.223724.ebuild b/media-tv/sundtek-tv/sundtek-tv-191002.223724.ebuild new file mode 100644 index 00000000..1c20efcf --- /dev/null +++ b/media-tv/sundtek-tv/sundtek-tv-191002.223724.ebuild @@ -0,0 +1,202 @@ +# Copyright 2014-2019 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-info pax-utils readme.gentoo-r1 systemd unpacker + +# The following variable is only for testing purposes. Leave it to "false" +keep_original=false + +DESCRIPTION="Sundtek MediaTV Pro III Drivers" +HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html +http://sundtek.de/media/latest.phtml" +SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" + +RESTRICT="binchecks mirror strip" +LICENSE="sundtek" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="ld-preload-env +ld-preload-file pax_kernel pulseaudio split-usr" +RDEPEND="!"${mypkgconfig}/libmedia.pc" || die + sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ + etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die + ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || + sed -i -e "s/^\([^#]\)/#\1/" etc/udev/rules.d/80-mediasrv-eeti.rules \ + || die + rm etc/systemd/system/multi-user.target.wants/sundtek.service || die + rmdir etc/systemd/system/multi-user.target.wants || die + rmdir etc/systemd/system || die + rmdir etc/systemd || die + mv etc/udev/rules.d/80-mediasrv.rules etc/hal . || die + mv etc/udev "${myudev}" || die + mv 1/doc/hardware.conf 1/doc/sundtek.conf "${mylirc}" || die + rm 1/doc/lirc_install.sh 1/doc/libmedia.pc || die + mv 1/doc/*.service "${S}" || die + mkdir "${S}/doc" && mkdir "${S}/doc/bin" || die + mv 1/doc/README 1/doc/*.conf "${S}/doc" || die + mv 1/doc/*.cgi "${S}/doc/bin" || die + rm etc/ld.so.conf.d/optlib.conf && rmdir etc/ld.so.conf.d || die + rmdir 1/doc || die "${S}/1/doc contains files not known to the ebuild" + rmdir 1 || die "${S}/1 contains files not known to the ebuild" + my_movlibdir "${mylibdir}" + mkdir etc/revdep-rebuild || die + echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${mybinprefix}/bin/audio/libpulse.so\"" \ + >etc/revdep-rebuild/50-sundtek-tv + if use ld-preload-file + then echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload + else sed -i -e 's/preload:-NO/preload:-YES/' sundtek.initd + fi + sed -i -e "s'preload_lib:-/usr/lib'preload_lib:-/${mylibdir}'" sundtek.initd + if use ld-preload-env + then mkdir etc/env.d + echo "LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\"" >etc/env.d/50sundtek-tv + fi + DOC_CONTENTS="${DOC_CONTENTS} +You have to put /${mylibdir}/libmediaclient.so into /etc/ld.so.preload +or to export LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\" +before you start a multimedia applications like mplayer or mpv which should +be able to access the sundtek device. + +This happens with USE=ld-preload-file or with ld-preload-env (in the global +environment), respectively. + +However, such a global setting in some cases this gives warnings when +32-bit applications are used. + +Thus, it might be a good idea to do it only locally by writing +corresponding wrapper scripts for those multimedia applications you +want to use with sundtek-tv. +" + ln -sfn mediaclient.video mediaclient.audio + ln -sfn mediaclient.video mediaclient.dvb + default +} + +src_install() { + insinto / + local i + for i in etc lib64 lib32 lib usr opt + do test -d "${i}" && mv -- "${i}" "${ED}" + done + for i in "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) "${ED}"/opt + do test -d "${i}" && chmod -R 755 "${i}" + done + if ! ${keep_original} + then newinitd sundtek.initd sundtek + systemd_dounit *.service + dodoc doc/README doc/*.conf + mv -- doc/bin "${ED}/usr/share/doc/${PF}" || die + docompress -x "/usr/share/doc/${PF}/bin" + fi + dobin mediaclient.video + insinto /usr/bin + doins mediaclient.dvb mediaclient.audio + insinto /usr/share/zsh/site-functions + doins _mediaclient + readme.gentoo_create_doc +} + +pkg_pretend() { + local CONFIG_CHECK="~INPUT_UINPUT" + check_extra_config +} + +pkg_postinst() { + einfo "Adding root to the audio group" + usermod -aG audio root || { + ewarn "Could not add root to the audio group." + ewarn "You should do this manually if you have problems with sound" + } + false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ + elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" + if ! use ld-preload-file + then if use ld-preload-env + then elog "You might have to call env-update and source /etc/profile" + else elog "You need to set LD_PRELOAD locally, see" + elog "${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" + fi + fi + readme.gentoo_print_elog +} diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index bc19b161..ed30aecf 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -23,11 +23,11 @@ app-misc/knapsack 7.2.1-r1: A fast solver for the 0/1-knapsack problem with mult app-misc/machine-learning-mv 1.2-r1: Some machine learning experiments app-portage/changelog-gitrepo 1.0: Create ChangeLog data for gentoo repositories from git app-portage/eix 0.33.8 0.33.9_alpha190613 99999999: Search and query ebuilds -app-portage/etcat 1.0.1 99999999: Updated version of an old Portage information extractor +app-portage/etcat 1.0.2 99999999: Updated version of an old Portage information extractor app-portage/find_cruft 5.1: find cruft files not managed by portage app-portage/getdelta 0.7.9-r2: dynamic deltup client app-portage/logclean 18.3: Keep only (compressed) logs of installed packages and cleanup emerge.log -app-portage/portage-bashrc-mv 17.3: Provide support for /etc/portage/bashrc.d and /etc/portage/package.cflags +app-portage/portage-bashrc-mv 18.0: Provide support for /etc/portage/bashrc.d and /etc/portage/package.cflags app-portage/portage-postsyncd-mv 8.3: postsync hooks for portage to sync from git app-portage/trickyfetch 10.0: Plugin for FETCHCOMMAND to help organize and cleanup your DISTDIR app-portage/useflags 4.1.3: Print or save the current USE-flag state and compare with older versions @@ -39,12 +39,12 @@ app-shells/oh-my-zsh 99999999: A ready-to-use zsh configuration with plugins app-shells/push 3.1-r4: A POSIX shell function to treat a variable like an array, quoting args app-shells/quoter 4.1-r1: Quote arguments or standard input for usage in POSIX shell by eval app-shells/runtitle 2.10: Scripts to run commands and set the hard status line (windows title) -app-shells/schily-tools 2019.08.13-r1: Many tools from Joerg Schilling, including a POSIX compliant Bourne Shell +app-shells/schily-tools 2019.10.07: Many tools from Joerg Schilling, including a POSIX compliant Bourne Shell app-shells/set_prompt 3.1: An intelligent prompt for zsh or bash with status line (window title) support app-shells/termcolors-mv 4.7-r1: 256colors sample script and dircolors configuration for standard or 256 colors app-shells/zsh-autosuggestions 0.6.3 99999999: Fish-like autosuggestions for zsh app-shells/zsh-syntax-highlighting 0.6.0 0.6.1_alpha20180411 99999999: Fish shell like syntax highlighting for zsh -app-shells/zshrc-mv 5.1: A zshrc file initializing zsh specific interactive features +app-shells/zshrc-mv 5.2: A zshrc file initializing zsh specific interactive features app-text/ispell 3.3.02-r1 3.4.00: fast screen-oriented spelling checker app-text/lesspipe 1.83-r3 1.84_alpha20190413 99999999: Wolfgang Friebel's preprocessor for sys-apps/less. Disable by appending colon app-text/mbtpdfasm 1.0.28-r1: Tool to assemble/merge, extract information from, and update the metadata in PDF @@ -79,7 +79,7 @@ media-gfx/pqiv 2.11: powerful GTK based command-line image viewer with a minimal media-libs/avidemux-core 2.7.4-r1: Core libraries for simple video cutting, filtering and encoding tasks media-libs/avidemux-plugins 2.7.4-r1: Plugins for the video editor media-video/avidemux media-tv/nvtv 0.4.7-r3: TV-Out for NVidia cards -media-tv/sundtek-tv 190731.173415: Sundtek MediaTV Pro III Drivers +media-tv/sundtek-tv 191002.223724: Sundtek MediaTV Pro III Drivers media-tv/w_scan 20170107-r1: Scan for DVB-C/DVB-T/DVB-S channels without prior knowledge of frequencies media-video/avidemux 2.7.4-r1: Video editor designed for simple cutting, filtering and encoding tasks media-video/avinfo 1.0_alpha15_p1: Utility for displaying AVI information -- cgit v1.2.3-65-gdbad