dev-util/patchbin: Initial commit: Can apply bin patches without git
authorNP-Hardass <NP-Hardass@gentoo.org>
Sat, 30 Sep 2017 03:28:54 +0000 (23:28 -0400)
committerNP-Hardass <NP-Hardass@gentoo.org>
Sat, 30 Sep 2017 03:30:25 +0000 (23:30 -0400)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-util/patchbin/Manifest [new file with mode: 0644]
dev-util/patchbin/metadata.xml [new file with mode: 0644]
dev-util/patchbin/patchbin-20160208.ebuild [new file with mode: 0644]
dev-util/patchbin/patchbin-99999999.ebuild [new file with mode: 0644]

diff --git a/dev-util/patchbin/Manifest b/dev-util/patchbin/Manifest
new file mode 100644 (file)
index 0000000..3ef02ba
--- /dev/null
@@ -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 (file)
index 0000000..1f33891
--- /dev/null
@@ -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 (file)
index 0000000..8da830c
--- /dev/null
@@ -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 (file)
index 0000000..8da830c
--- /dev/null
@@ -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."
+}