mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/uncrustify: fix live ebuild
Package-Manager: portage-2.2.28-prefix
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
if [[ $PV == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://github.com/uncrustify/uncrustify.git
|
||||
https://github.com/uncrustify/uncrustify.git"
|
||||
KEYWORDS=""
|
||||
SRC_URI=""
|
||||
inherit git-r3
|
||||
inherit git-r3 autotools
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://github.com/uncrustify/${PN}/archive/${P}.tar.gz"
|
||||
S=${WORKDIR}/uncrustify-${P}
|
||||
fi
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
@@ -28,7 +29,12 @@ IUSE="test"
|
||||
|
||||
DEPEND="test? ( ${PYTHON_DEPS} )"
|
||||
|
||||
S=${WORKDIR}/uncrustify-${P}
|
||||
src_prepare() {
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
eautoreconf
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
if [[ $PV == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://github.com/bengardner/uncrustify.git
|
||||
https://github.com/bengardner/uncrustify.git"
|
||||
EGIT_REPO_URI="git://github.com/uncrustify/uncrustify.git
|
||||
https://github.com/uncrustify/uncrustify.git"
|
||||
KEYWORDS=""
|
||||
SRC_URI=""
|
||||
inherit git-r3
|
||||
inherit git-r3 autotools
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/uncrustify/${PN}/archive/${P}.tar.gz"
|
||||
S=${WORKDIR}/uncrustify-${P}
|
||||
fi
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
@@ -28,6 +29,13 @@ IUSE="test"
|
||||
|
||||
DEPEND="test? ( ${PYTHON_DEPS} )"
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
eautoreconf
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests
|
||||
${EPYTHON} run_tests.py || die "tests failed"
|
||||
|
||||
Reference in New Issue
Block a user