summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <NP-Hardass@gentoo.org>2017-09-29 23:28:54 -0400
committerNP-Hardass <NP-Hardass@gentoo.org>2017-09-29 23:30:25 -0400
commitb0a28c6300661cc69de50b83566307fd493134cd (patch)
tree34b5cda23c373db0bf40ebdace15ad8cd1375f2c /dev-util/patchbin
parentapp-emacs/pymacs: remove 0.25-r1 (diff)
downloadgentoo-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')
-rw-r--r--dev-util/patchbin/Manifest1
-rw-r--r--dev-util/patchbin/metadata.xml18
-rw-r--r--dev-util/patchbin/patchbin-20160208.ebuild54
-rw-r--r--dev-util/patchbin/patchbin-99999999.ebuild54
4 files changed, 127 insertions, 0 deletions
diff --git a/dev-util/patchbin/Manifest b/dev-util/patchbin/Manifest
new file mode 100644
index 000000000000..3ef02ba7088e
--- /dev/null
+++ b/dev-util/patchbin/Manifest
@@ -0,0 +1 @@
+DIST patchbin-20160208.tar.gz 9713001 SHA256 40bb69a6c7c46e59082b22224195dd5f8dedcb67fb5220eb646c06fa5dc60e6a SHA512 eeb5c4bc708cfc3a065568ef233297586c3bb3d497c6bf3ace52b8337b5a5d127e607f668a6f74e3be892e8cfac96a046dea3646735c4404efedd8760572353a WHIRLPOOL 384b44d127adcf4674f2e237fd502d55e8829535397789c31d1ef119a4bdaa1d2f33e3377bbf80077539f8bbd7664c9679658b673edc73ece043c8eba0f7e941
diff --git a/dev-util/patchbin/metadata.xml b/dev-util/patchbin/metadata.xml
new file mode 100644
index 000000000000..1f33891b2670
--- /dev/null
+++ b/dev-util/patchbin/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+ <longdescription lang="en">
+ Apply binary patches without git
+ </longdescription>
+ <upstream>
+ <remote-id type="github">wine-compholio/wine-staging</remote-id>
+ <maintainer>
+ <name>Sebastian Lackner</name>
+ <email>sebastian@fds-team.de</email>
+ </maintainer>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/patchbin/patchbin-20160208.ebuild b/dev-util/patchbin/patchbin-20160208.ebuild
new file mode 100644
index 000000000000..8da830cccac7
--- /dev/null
+++ b/dev-util/patchbin/patchbin-20160208.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."
+}
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."
+}