ulm 15/05/30 08:28:18 Modified: ubin-wrappers-0.ebuild ChangeLog Log: [QA] Do not rely on executable script in files/, do not call Portage internal functions, bug 550540. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
Revision Changes Path 1.3 sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild?r1=1.2&r2=1.3 Index: ubin-wrappers-0.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ubin-wrappers-0.ebuild 8 Dec 2012 09:06:05 -0000 1.2 +++ ubin-wrappers-0.ebuild 30 May 2015 08:28:18 -0000 1.3 @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild,v 1.2 2012/12/08 09:06:05 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild,v 1.3 2015/05/30 08:28:18 ulm Exp $ -EAPI=4 +EAPI=5 DESCRIPTION="/usr/bin wrapper scripts for FreeBSD script compatibility" HOMEPAGE="http://www.gentoo.org" @@ -18,12 +18,20 @@ S="${WORKDIR}" -src_install() -{ - - into /usr/bin - "${FILESDIR}/dowrap" "${EPREFIX}/bin/"{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat} - use userland_BSD && "${FILESDIR}/dowrap" "${EPREFIX}/bin/sort" - use userland_GNU && "${FILESDIR}/dowrap" "${EPREFIX}/bin/"{fuser,sed,uncompress} +dowrap() { + local x + for x do + [[ -e ${x} ]] || die "${x} does not exist" + newbin - "$(basename "${x}")" <<-EOF + #!/bin/sh + exec ${x} \${1:+"\$@"} + EOF + done +} +src_install() { + dowrap \ + "${EPREFIX}"/bin/{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat} + use userland_BSD && dowrap "${EPREFIX}"/bin/sort + use userland_GNU && dowrap "${EPREFIX}"/bin/{fuser,sed,uncompress} } 1.3 sys-freebsd/ubin-wrappers/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog?r1=1.2&r2=1.3 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ChangeLog 8 Dec 2012 09:06:05 -0000 1.2 +++ ChangeLog 30 May 2015 08:28:18 -0000 1.3 @@ -1,6 +1,11 @@ # ChangeLog for sys-freebsd/ubin-wrappers -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog,v 1.2 2012/12/08 09:06:05 ulm Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ChangeLog,v 1.3 2015/05/30 08:28:18 ulm Exp $ + + 30 May 2015; Ulrich Müller <[email protected]> ubin-wrappers-0.ebuild, + -files/dowrap: + [QA] Do not rely on executable script in files/, do not call Portage internal + functions, bug 550540. 08 Dec 2012; Ulrich Müller <[email protected]> ubin-wrappers-0.ebuild: Change LICENSE to public-domain, bug 441832.
