Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/octetos-core/
Date: Tue, 05 May 2020 09:56:05
Message-Id: 1588669724.3cd90654731ff9221ad2b15cb9e3dc01969ace8f.andrewammerlaan@gentoo
1 commit: 3cd90654731ff9221ad2b15cb9e3dc01969ace8f
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Tue May 5 09:08:24 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue May 5 09:08:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3cd90654
7
8 dev-libs/octetos-core: simplify ebuilds
9
10 you can set the S variable to the location of the source files
11 instead of symlinking the source files to the default value of S
12
13 Also, there is no need to specify the default functions, they
14 are implemented automatically if nothing is specified
15
16 Using MYPV is very helpful as you now only have to change 1 line
17 to version bump
18
19 Package-Manager: Portage-2.3.99, Repoman-2.3.22
20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
21
22 .../octetos-core/octetos-core-1.2.2_beta.ebuild | 18 ++++++-----------
23 .../octetos-core/octetos-core-2.0.0_beta.ebuild | 22 +++++----------------
24 .../octetos-core/octetos-core-2.2.0_beta.ebuild | 23 +++++-----------------
25 .../octetos-core/octetos-core-2.2.1_beta.ebuild | 23 +++++-----------------
26 4 files changed, 21 insertions(+), 65 deletions(-)
27
28 diff --git a/dev-libs/octetos-core/octetos-core-1.2.2_beta.ebuild b/dev-libs/octetos-core/octetos-core-1.2.2_beta.ebuild
29 index 6b9289e..076a1c4 100644
30 --- a/dev-libs/octetos-core/octetos-core-1.2.2_beta.ebuild
31 +++ b/dev-libs/octetos-core/octetos-core-1.2.2_beta.ebuild
32 @@ -5,9 +5,11 @@ EAPI=7
33
34 inherit autotools
35
36 +MYPV="${PV/_beta/-br}"
37 +
38 DESCRIPTION="C/C++ library to mainly provide Semantic Versioned implementation"
39 HOMEPAGE="https://github.com/azaeldevel/octetos-core"
40 -SRC_URI="https://github.com/azaeldevel/octetos-core/archive/1.2.2-br.tar.gz"
41 +SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz"
42
43 LICENSE="GPL-3"
44 SLOT="0"
45 @@ -24,17 +26,9 @@ BDEPEND="
46 dev-libs/libconfig
47 "
48
49 -src_unpack() {
50 - default
51 - ln -s octetos-core-1.2.2-br "${P}"
52 -}
53 +S="${WORKDIR}/${PN}-${MYPV}"
54
55 -src_configure() {
56 +src_prepare() {
57 + default
58 eautoreconf -fi
59 }
60 -
61 -src_compile() {
62 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
63 - emake || die "emake failed"
64 - fi
65 -}
66
67 diff --git a/dev-libs/octetos-core/octetos-core-2.0.0_beta.ebuild b/dev-libs/octetos-core/octetos-core-2.0.0_beta.ebuild
68 index 76c32d5..c542204 100644
69 --- a/dev-libs/octetos-core/octetos-core-2.0.0_beta.ebuild
70 +++ b/dev-libs/octetos-core/octetos-core-2.0.0_beta.ebuild
71 @@ -5,9 +5,11 @@ EAPI=7
72
73 inherit autotools
74
75 +MYPV="${PV/_beta/-alpha.2}"
76 +
77 DESCRIPTION="C/C++ library to mainly provide Semantic Versioned implementation"
78 HOMEPAGE="https://github.com/azaeldevel/octetos-core"
79 -SRC_URI="https://github.com/azaeldevel/octetos-core/archive/2.0.0-alpha.2.tar.gz"
80 +SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz"
81
82 LICENSE="GPL-3"
83 SLOT="0"
84 @@ -24,23 +26,9 @@ BDEPEND="
85 dev-libs/libconfig
86 "
87
88 -src_unpack() {
89 - default
90 - ln -s octetos-core-2.0.0-alpha.2 "${P}"
91 -}
92 +S="${WORKDIR}/${PN}-${MYPV}"
93
94 src_prepare() {
95 + default
96 eautoreconf -fi
97 - eapply_user
98 -}
99 -
100 -src_configure() {
101 - if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
102 - econf
103 - fi
104 -}
105 -src_compile() {
106 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
107 - emake || die "emake failed"
108 - fi
109 }
110
111 diff --git a/dev-libs/octetos-core/octetos-core-2.2.0_beta.ebuild b/dev-libs/octetos-core/octetos-core-2.2.0_beta.ebuild
112 index 380bac2..d4556b7 100644
113 --- a/dev-libs/octetos-core/octetos-core-2.2.0_beta.ebuild
114 +++ b/dev-libs/octetos-core/octetos-core-2.2.0_beta.ebuild
115 @@ -5,9 +5,11 @@ EAPI=7
116
117 inherit autotools
118
119 +MYPV="${PV/_beta/-beta.3}"
120 +
121 DESCRIPTION="C/C++ library to mainly provide Semantic Versioned implementation"
122 HOMEPAGE="https://github.com/azaeldevel/octetos-core"
123 -SRC_URI="https://github.com/azaeldevel/octetos-core/archive/2.2.0-beta.3.tar.gz"
124 +SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz"
125
126 LICENSE="GPL-3"
127 SLOT="0"
128 @@ -23,24 +25,9 @@ BDEPEND="
129 dev-libs/libconfig
130 "
131
132 -src_unpack() {
133 - default
134 - ln -s octetos-core-2.2.0-beta.3 "${P}"
135 -}
136 +S="${WORKDIR}/${PN}-${MYPV}"
137
138 src_prepare() {
139 + default
140 eautoreconf -fi
141 - eapply_user
142 -}
143 -
144 -src_configure() {
145 - if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
146 - econf
147 - fi
148 -}
149 -
150 -src_compile() {
151 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
152 - emake || die "emake failed"
153 - fi
154 }
155
156 diff --git a/dev-libs/octetos-core/octetos-core-2.2.1_beta.ebuild b/dev-libs/octetos-core/octetos-core-2.2.1_beta.ebuild
157 index 77d1004..aa7c1f6 100644
158 --- a/dev-libs/octetos-core/octetos-core-2.2.1_beta.ebuild
159 +++ b/dev-libs/octetos-core/octetos-core-2.2.1_beta.ebuild
160 @@ -5,9 +5,11 @@ EAPI=7
161
162 inherit autotools
163
164 +MYPV="${PV/_beta/-beta.1}"
165 +
166 DESCRIPTION="C/C++ library to mainly provide Semantic Versioned implementation"
167 HOMEPAGE="https://github.com/azaeldevel/octetos-core"
168 -SRC_URI="https://github.com/azaeldevel/octetos-core/archive/2.2.1-beta.1.tar.gz"
169 +SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz"
170
171 LICENSE="GPL-3"
172 SLOT="0"
173 @@ -23,24 +25,9 @@ BDEPEND="
174 dev-libs/libconfig
175 "
176
177 -src_unpack() {
178 - default
179 - ln -s octetos-core-2.2.1-beta.1 "${P}"
180 -}
181 +S="${WORKDIR}/${PN}-${MYPV}"
182
183 src_prepare() {
184 + default
185 eautoreconf -fi
186 - eapply_user
187 -}
188 -
189 -src_configure() {
190 - if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
191 - econf
192 - fi
193 -}
194 -
195 -src_compile() {
196 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
197 - emake || die "emake failed"
198 - fi
199 }