diff options
Diffstat (limited to 'app-text/blogc/blogc-0.8.0.ebuild')
-rw-r--r-- | app-text/blogc/blogc-0.8.0.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-text/blogc/blogc-0.8.0.ebuild b/app-text/blogc/blogc-0.8.0.ebuild new file mode 100644 index 000000000000..19a54614676b --- /dev/null +++ b/app-text/blogc/blogc-0.8.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI=" + git://github.com/blogc/blogc.git + https://github.com/blogc/blogc.git" + inherit git-r3 autotools +fi + +DESCRIPTION="A blog compiler" +HOMEPAGE="http://blogc.org/" + +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" +KEYWORDS="~amd64 ~x86" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" + KEYWORDS="" + RDEPEND="=dev-libs/squareball-9999" + DEPEND="${RDEPEND} + app-text/ronn" +else + RDEPEND=">=dev-libs/squareball-0.2.0" + DEPEND="${RDEPEND}" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="test" + +DEPEND="${DEPEND} + virtual/pkgconfig + test? ( + dev-util/cmocka )" + +src_prepare() { + [[ ${PV} = *9999* ]] && eautoreconf + eapply_user + default +} + +src_configure() { + local myconf="" + if [[ ${PV} = *9999* ]]; then + myconf+="--enable-ronn" + else + myconf+="--disable-ronn" + fi + econf \ + $(use_enable test tests) \ + --disable-valgrind \ + --with-squareball=system \ + ${myconf} +} |