2016-02-21 19:11:05 +03:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2015-08-19 10:23:21 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
2016-02-29 08:50:34 +03:00
|
|
|
EAPI=6
|
2015-08-19 10:23:21 +03:00
|
|
|
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
2016-02-21 19:11:05 +03:00
|
|
|
EGIT_REPO_URI="
|
|
|
|
git://github.com/blogc/blogc.git
|
2015-08-19 10:23:21 +03:00
|
|
|
https://github.com/blogc/blogc.git"
|
|
|
|
inherit git-r3 autotools
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="A blog compiler"
|
|
|
|
HOMEPAGE="http://blogc.org/"
|
|
|
|
|
2016-02-21 19:11:05 +03:00
|
|
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
2015-08-19 10:23:21 +03:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
SRC_URI=""
|
|
|
|
KEYWORDS=""
|
2016-02-29 08:50:34 +03:00
|
|
|
RDEPEND="=dev-libs/squareball-9999"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
app-text/ronn"
|
|
|
|
else
|
2016-04-08 11:12:30 +03:00
|
|
|
RDEPEND=">=dev-libs/squareball-0.2.0"
|
2016-02-29 08:50:34 +03:00
|
|
|
DEPEND="${RDEPEND}"
|
2015-08-19 10:23:21 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
DEPEND="${DEPEND}
|
2016-02-29 08:50:34 +03:00
|
|
|
virtual/pkgconfig
|
2015-08-19 10:23:21 +03:00
|
|
|
test? (
|
|
|
|
dev-util/cmocka )"
|
|
|
|
|
|
|
|
src_prepare() {
|
2016-04-21 22:42:37 +03:00
|
|
|
[[ ${PV} = *9999* ]] && AT_NO_RECURSIVE=1 eautoreconf
|
2016-02-29 08:50:34 +03:00
|
|
|
eapply_user
|
2015-08-19 10:23:21 +03:00
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myconf=""
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
myconf+="--enable-ronn"
|
|
|
|
else
|
|
|
|
myconf+="--disable-ronn"
|
|
|
|
fi
|
|
|
|
econf \
|
|
|
|
$(use_enable test tests) \
|
|
|
|
--disable-valgrind \
|
2016-02-29 08:50:34 +03:00
|
|
|
--with-squareball=system \
|
2015-08-19 10:23:21 +03:00
|
|
|
${myconf}
|
|
|
|
}
|