mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
dev-libs/octetos-core: simplify ebuilds
you can set the S variable to the location of the source files instead of symlinking the source files to the default value of S Also, there is no need to specify the default functions, they are implemented automatically if nothing is specified Using MYPV is very helpful as you now only have to change 1 line to version bump Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
@@ -5,9 +5,11 @@ EAPI=7
|
||||
|
||||
inherit autotools
|
||||
|
||||
MYPV="${PV/_beta/-alpha.2}"
|
||||
|
||||
DESCRIPTION="C/C++ library to mainly provide Semantic Versioned implementation"
|
||||
HOMEPAGE="https://github.com/azaeldevel/octetos-core"
|
||||
SRC_URI="https://github.com/azaeldevel/octetos-core/archive/2.0.0-alpha.2.tar.gz"
|
||||
SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
@@ -24,23 +26,9 @@ BDEPEND="
|
||||
dev-libs/libconfig
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
ln -s octetos-core-2.0.0-alpha.2 "${P}"
|
||||
}
|
||||
S="${WORKDIR}/${PN}-${MYPV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf -fi
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
|
||||
econf
|
||||
fi
|
||||
}
|
||||
src_compile() {
|
||||
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user