From e733bac105ec79e7ef2d9bc1bb820f2a884d0426 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 21 Nov 2018 11:53:21 +0100 Subject: app-arch/star: Revbump to add dependency on sys-libs/libcap Also bumped ebuild to EAPI-7 Bumped straight to stable. Closes: https://bugs.gentoo.org/628070 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Lars Wendler --- app-arch/star/star-1.5.3-r1.ebuild | 109 +++++++++++++++++++++++++++++++++++++ app-arch/star/star-1.5.3.ebuild | 99 --------------------------------- 2 files changed, 109 insertions(+), 99 deletions(-) create mode 100644 app-arch/star/star-1.5.3-r1.ebuild delete mode 100644 app-arch/star/star-1.5.3.ebuild (limited to 'app-arch/star') diff --git a/app-arch/star/star-1.5.3-r1.ebuild b/app-arch/star/star-1.5.3-r1.ebuild new file mode 100644 index 000000000000..480ce97a4327 --- /dev/null +++ b/app-arch/star/star-1.5.3-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt" +HOMEPAGE="http://s-tar.sourceforge.net/" +SRC_URI="mirror://sourceforge/s-tar/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="acl xattr" + +DEPEND=" + sys-libs/libcap + acl? ( sys-apps/acl ) + xattr? ( sys-apps/attr )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_alpha[0-9][0-9]}" + +src_prepare() { + default + + find -type f -exec chmod -c u+w '{}' + || die + sed \ + -e "s:/opt/schily:${EPREFIX}/usr:g" \ + -e 's:bin:root:g' \ + -e "s:/usr/src/linux/include:${EPREFIX}/usr/include:" \ + -i DEFAULTS/Defaults.linux || die + + # Disable libacl autodependency (hacky build system, hacky fix...) + if use acl; then + sed \ + -e 's:[$]ac_cv_header_sys_acl_h:disable acl:' \ + -i autoconf/configure || die + fi + + if use xattr; then + sed \ + -e 's:[$]ac_cv_header_attr_xattr_h:disable xattr:' \ + -i autoconf/configure || die + fi + + # "echo -n" is not POSIX compliant + sed \ + -e 's@echo $ac_n@printf@' \ + -e '/printf/s@$ac_c@@g' \ + -i autoconf/configure || die + + # Create additional symlinks needed for some archs. + pushd "${S}/RULES" > /dev/null + local t + for t in ppc64 s390x ; do + ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die + ln -s i586-linux-gcc.rul ${t}-linux-gcc.rul || die + done + popd > /dev/null +} + +src_configure() { :; } #avoid ./configure run + +src_compile() { + emake \ + GMAKE_NOWARN="true" \ + CC="$(tc-getCC)" \ + COPTX="${CFLAGS}" \ + CPPOPTX="${CPPFLAGS}" \ + COPTGPROF= \ + COPTOPT= \ + LDOPTX="${LDFLAGS}" +} + +src_install() { + # Joerg Schilling suggested to integrate star into the main OS using call: + # make INS_BASE=/usr DESTDIR="${D}" install + + dobin \ + star/OBJ/*-*-cc/star \ + tartest/OBJ/*-*-cc/tartest \ + star_sym/OBJ/*-*-cc/star_sym \ + mt/OBJ/*-*-cc/smt + + newsbin rmt/OBJ/*-*-cc/rmt rmt.star + newman rmt/rmt.1 rmt.star.1 + + # Note that we should never install gnutar, tar or rmt in this package. + # tar and rmt are provided by app-arch/tar. gnutar is not compatible with + # GNU tar and breakes compilation, or init scripts. bug #33119 + dosym {star,/usr/bin/ustar} + dosym {star,/usr/bin/spax} + dosym {star,/usr/bin/scpio} + dosym {star,/usr/bin/suntar} + + # match is needed to understand the pattern matcher, if you wondered why ;) + doman man/man1/match.1 tartest/tartest.1 \ + star/{star.4,star.1,spax.1,scpio.1,suntar.1} + + insinto /etc/default + newins star/star.dfl star + newins rmt/rmt.dfl rmt + + dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \ + star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \ + rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING +} diff --git a/app-arch/star/star-1.5.3.ebuild b/app-arch/star/star-1.5.3.ebuild deleted file mode 100644 index f841e026ddc1..000000000000 --- a/app-arch/star/star-1.5.3.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils toolchain-funcs - -DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt" -HOMEPAGE="http://s-tar.sourceforge.net/" -SRC_URI="mirror://sourceforge/s-tar/${P}.tar.bz2" - -LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="acl xattr" - -DEPEND=" - acl? ( sys-apps/acl ) - xattr? ( sys-apps/attr )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${P/_alpha[0-9][0-9]} - -src_prepare() { - find -type f -exec chmod -c u+w '{}' + || die - sed \ - -e "s:/opt/schily:${EPREFIX}/usr:g" \ - -e 's:bin:root:g' \ - -e "s:/usr/src/linux/include:${EPREFIX}/usr/include:" \ - -i DEFAULTS/Defaults.linux || die - - # Disable libacl autodependency (hacky build system, hacky fix...) - if use acl; then - sed \ - -e 's:[$]ac_cv_header_sys_acl_h:disable acl:' \ - -i "${S}/autoconf/configure" || die - fi - - if use xattr; then - sed \ - -e 's:[$]ac_cv_header_attr_xattr_h:disable xattr:' \ - -i "${S}/autoconf/configure" || die - fi - - # Create additional symlinks needed for some archs. - pushd "${S}/RULES" > /dev/null - local t - for t in ppc64 s390x ; do - ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die - ln -s i586-linux-gcc.rul ${t}-linux-gcc.rul || die - done - popd > /dev/null -} - -src_configure() { :; } #avoid ./configure run - -src_compile() { - emake \ - CC="$(tc-getCC)" \ - COPTX="${CFLAGS}" \ - CPPOPTX="${CPPFLAGS}" \ - COPTGPROF= \ - COPTOPT= \ - LDOPTX="${LDFLAGS}" -} - -src_install() { - # Joerg Schilling suggested to integrate star into the main OS using call: - # make INS_BASE=/usr DESTDIR="${D}" install - - dobin \ - star/OBJ/*-*-cc/star \ - tartest/OBJ/*-*-cc/tartest \ - star_sym/OBJ/*-*-cc/star_sym \ - mt/OBJ/*-*-cc/smt - - newsbin rmt/OBJ/*-*-cc/rmt rmt.star - newman rmt/rmt.1 rmt.star.1 - - # Note that we should never install gnutar, tar or rmt in this package. - # tar and rmt are provided by app-arch/tar. gnutar is not compatible with - # GNU tar and breakes compilation, or init scripts. bug #33119 - dosym {star,/usr/bin/ustar} - dosym {star,/usr/bin/spax} - dosym {star,/usr/bin/scpio} - dosym {star,/usr/bin/suntar} - - # match is needed to understand the pattern matcher, if you wondered why ;) - doman man/man1/match.1 tartest/tartest.1 \ - star/{star.4,star.1,spax.1,scpio.1,suntar.1} - - insinto /etc/default - newins star/star.dfl star - newins rmt/rmt.dfl rmt - - dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \ - star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \ - rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING -} -- cgit v1.2.3-65-gdbad