Gentoo Archives: gentoo-commits

From: NP Hardass <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/patchbin/
Date: Sat, 30 Sep 2017 03:30:36
Message-Id: 1506742225.b0a28c6300661cc69de50b83566307fd493134cd.np-hardass@gentoo
1 commit: b0a28c6300661cc69de50b83566307fd493134cd
2 Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 30 03:28:54 2017 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 30 03:30:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a28c63
7
8 dev-util/patchbin: Initial commit: Can apply bin patches without git
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 dev-util/patchbin/Manifest | 1 +
13 dev-util/patchbin/metadata.xml | 18 ++++++++++
14 dev-util/patchbin/patchbin-20160208.ebuild | 54 ++++++++++++++++++++++++++++++
15 dev-util/patchbin/patchbin-99999999.ebuild | 54 ++++++++++++++++++++++++++++++
16 4 files changed, 127 insertions(+)
17
18 diff --git a/dev-util/patchbin/Manifest b/dev-util/patchbin/Manifest
19 new file mode 100644
20 index 00000000000..3ef02ba7088
21 --- /dev/null
22 +++ b/dev-util/patchbin/Manifest
23 @@ -0,0 +1 @@
24 +DIST patchbin-20160208.tar.gz 9713001 SHA256 40bb69a6c7c46e59082b22224195dd5f8dedcb67fb5220eb646c06fa5dc60e6a SHA512 eeb5c4bc708cfc3a065568ef233297586c3bb3d497c6bf3ace52b8337b5a5d127e607f668a6f74e3be892e8cfac96a046dea3646735c4404efedd8760572353a WHIRLPOOL 384b44d127adcf4674f2e237fd502d55e8829535397789c31d1ef119a4bdaa1d2f33e3377bbf80077539f8bbd7664c9679658b673edc73ece043c8eba0f7e941
25
26 diff --git a/dev-util/patchbin/metadata.xml b/dev-util/patchbin/metadata.xml
27 new file mode 100644
28 index 00000000000..1f33891b267
29 --- /dev/null
30 +++ b/dev-util/patchbin/metadata.xml
31 @@ -0,0 +1,18 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>NP-Hardass@g.o</email>
37 + <name>NP-Hardass</name>
38 + </maintainer>
39 + <longdescription lang="en">
40 + Apply binary patches without git
41 + </longdescription>
42 + <upstream>
43 + <remote-id type="github">wine-compholio/wine-staging</remote-id>
44 + <maintainer>
45 + <name>Sebastian Lackner</name>
46 + <email>sebastian@××××××××.de</email>
47 + </maintainer>
48 + </upstream>
49 +</pkgmetadata>
50
51 diff --git a/dev-util/patchbin/patchbin-20160208.ebuild b/dev-util/patchbin/patchbin-20160208.ebuild
52 new file mode 100644
53 index 00000000000..8da830cccac
54 --- /dev/null
55 +++ b/dev-util/patchbin/patchbin-20160208.ebuild
56 @@ -0,0 +1,54 @@
57 +# Copyright 1999-2017 Gentoo Foundation
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=6
61 +
62 +if [[ ${PV} == 99999999 ]]; then
63 + inherit git-r3
64 + EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging"
65 + KEYWORDS=""
66 + S="${WORKDIR}/wine-staging"
67 +else
68 + SHA="4ffcf184bb71c6c3512b3a8c144dcf4a3a76d23c"
69 + SRC_URI="https://github.com/wine-compholio/wine-staging/archive/${SHA}.tar.gz -> ${P}.tar.gz"
70 + KEYWORDS="~amd64 ~x86 ~x86-fbsd"
71 + S="${WORKDIR}/wine-staging-${SHA}"
72 +fi
73 +
74 +DESCRIPTION="Apply binary patches without git"
75 +HOMEPAGE="https://github.com/wine-compholio/wine-staging"
76 +
77 +LICENSE="LGPL-2.1"
78 +SLOT="0"
79 +IUSE="userland_BSD userland_GNU"
80 +
81 +RDEPEND="
82 + app-shells/bash
83 + sys-apps/coreutils
84 + sys-apps/gawk
85 + sys-apps/grep
86 + userland_BSD? (
87 + sys-freebsd/freebsd-bin
88 + sys-freebsd/freebsd-ubin
89 + )
90 + userland_GNU? (
91 + sys-apps/util-linux
92 + sys-devel/patch
93 + )
94 +"
95 +
96 +src_prepare(){
97 + mv patches/gitapply.sh ${PN} || die
98 + sed -E -i "s/(\.\/)?gitapply(\.sh)?/${PN}/g" ${PN} || die
99 +
100 + default
101 +}
102 +
103 +src_install(){
104 + exeinto /usr/bin/
105 + doexe ${PN}
106 +}
107 +
108 +pkg_postinst(){
109 + einfo "${PN} can optionally use dev-util/git to apply patches if installed."
110 +}
111
112 diff --git a/dev-util/patchbin/patchbin-99999999.ebuild b/dev-util/patchbin/patchbin-99999999.ebuild
113 new file mode 100644
114 index 00000000000..8da830cccac
115 --- /dev/null
116 +++ b/dev-util/patchbin/patchbin-99999999.ebuild
117 @@ -0,0 +1,54 @@
118 +# Copyright 1999-2017 Gentoo Foundation
119 +# Distributed under the terms of the GNU General Public License v2
120 +
121 +EAPI=6
122 +
123 +if [[ ${PV} == 99999999 ]]; then
124 + inherit git-r3
125 + EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging"
126 + KEYWORDS=""
127 + S="${WORKDIR}/wine-staging"
128 +else
129 + SHA="4ffcf184bb71c6c3512b3a8c144dcf4a3a76d23c"
130 + SRC_URI="https://github.com/wine-compholio/wine-staging/archive/${SHA}.tar.gz -> ${P}.tar.gz"
131 + KEYWORDS="~amd64 ~x86 ~x86-fbsd"
132 + S="${WORKDIR}/wine-staging-${SHA}"
133 +fi
134 +
135 +DESCRIPTION="Apply binary patches without git"
136 +HOMEPAGE="https://github.com/wine-compholio/wine-staging"
137 +
138 +LICENSE="LGPL-2.1"
139 +SLOT="0"
140 +IUSE="userland_BSD userland_GNU"
141 +
142 +RDEPEND="
143 + app-shells/bash
144 + sys-apps/coreutils
145 + sys-apps/gawk
146 + sys-apps/grep
147 + userland_BSD? (
148 + sys-freebsd/freebsd-bin
149 + sys-freebsd/freebsd-ubin
150 + )
151 + userland_GNU? (
152 + sys-apps/util-linux
153 + sys-devel/patch
154 + )
155 +"
156 +
157 +src_prepare(){
158 + mv patches/gitapply.sh ${PN} || die
159 + sed -E -i "s/(\.\/)?gitapply(\.sh)?/${PN}/g" ${PN} || die
160 +
161 + default
162 +}
163 +
164 +src_install(){
165 + exeinto /usr/bin/
166 + doexe ${PN}
167 +}
168 +
169 +pkg_postinst(){
170 + einfo "${PN} can optionally use dev-util/git to apply patches if installed."
171 +}