diff options
author | 2017-09-29 23:28:54 -0400 | |
---|---|---|
committer | 2017-09-29 23:30:25 -0400 | |
commit | b0a28c6300661cc69de50b83566307fd493134cd (patch) | |
tree | 34b5cda23c373db0bf40ebdace15ad8cd1375f2c /dev-util/patchbin/patchbin-99999999.ebuild | |
parent | app-emacs/pymacs: remove 0.25-r1 (diff) | |
download | gentoo-b0a28c6300661cc69de50b83566307fd493134cd.tar.gz gentoo-b0a28c6300661cc69de50b83566307fd493134cd.tar.bz2 gentoo-b0a28c6300661cc69de50b83566307fd493134cd.zip |
dev-util/patchbin: Initial commit: Can apply bin patches without git
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'dev-util/patchbin/patchbin-99999999.ebuild')
-rw-r--r-- | dev-util/patchbin/patchbin-99999999.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-util/patchbin/patchbin-99999999.ebuild b/dev-util/patchbin/patchbin-99999999.ebuild new file mode 100644 index 000000000000..8da830cccac7 --- /dev/null +++ b/dev-util/patchbin/patchbin-99999999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == 99999999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging" + KEYWORDS="" + S="${WORKDIR}/wine-staging" +else + SHA="4ffcf184bb71c6c3512b3a8c144dcf4a3a76d23c" + SRC_URI="https://github.com/wine-compholio/wine-staging/archive/${SHA}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~x86-fbsd" + S="${WORKDIR}/wine-staging-${SHA}" +fi + +DESCRIPTION="Apply binary patches without git" +HOMEPAGE="https://github.com/wine-compholio/wine-staging" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="userland_BSD userland_GNU" + +RDEPEND=" + app-shells/bash + sys-apps/coreutils + sys-apps/gawk + sys-apps/grep + userland_BSD? ( + sys-freebsd/freebsd-bin + sys-freebsd/freebsd-ubin + ) + userland_GNU? ( + sys-apps/util-linux + sys-devel/patch + ) +" + +src_prepare(){ + mv patches/gitapply.sh ${PN} || die + sed -E -i "s/(\.\/)?gitapply(\.sh)?/${PN}/g" ${PN} || die + + default +} + +src_install(){ + exeinto /usr/bin/ + doexe ${PN} +} + +pkg_postinst(){ + einfo "${PN} can optionally use dev-util/git to apply patches if installed." +} |