You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.1 KiB
61 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
9 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
|
if [[ ${PV} = *9999* ]]; then
|
||
7 years ago
|
EGIT_REPO_URI="https://github.com/blogc/blogc.git"
|
||
9 years ago
|
inherit git-r3 autotools
|
||
|
fi
|
||
|
|
||
|
DESCRIPTION="A blog compiler"
|
||
9 years ago
|
HOMEPAGE="https://blogc.rgm.io/"
|
||
9 years ago
|
|
||
9 years ago
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
||
9 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
|
if [[ ${PV} = *9999* ]]; then
|
||
|
SRC_URI=""
|
||
|
KEYWORDS=""
|
||
9 years ago
|
DEPEND="app-text/ronn"
|
||
9 years ago
|
fi
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
7 years ago
|
IUSE="git httpd make test"
|
||
5 years ago
|
RESTRICT="!test? ( test )"
|
||
9 years ago
|
|
||
8 years ago
|
RDEPEND="
|
||
9 years ago
|
git? (
|
||
|
dev-vcs/git )
|
||
|
!dev-vcs/blogc-git-receiver
|
||
|
!www-servers/blogc-runserver"
|
||
9 years ago
|
|
||
|
DEPEND="${DEPEND}
|
||
9 years ago
|
virtual/pkgconfig
|
||
9 years ago
|
test? (
|
||
8 years ago
|
git? ( dev-vcs/git )
|
||
9 years ago
|
dev-util/cmocka )"
|
||
|
|
||
|
src_prepare() {
|
||
9 years ago
|
[[ ${PV} = *9999* ]] && eautoreconf
|
||
9 years ago
|
eapply_user
|
||
9 years ago
|
default
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myconf=""
|
||
|
if [[ ${PV} = *9999* ]]; then
|
||
|
myconf+="--enable-ronn"
|
||
|
else
|
||
|
myconf+="--disable-ronn"
|
||
|
fi
|
||
|
econf \
|
||
|
$(use_enable test tests) \
|
||
9 years ago
|
$(use_enable git git-receiver) \
|
||
7 years ago
|
$(use_enable make make) \
|
||
9 years ago
|
$(use_enable httpd runserver) \
|
||
7 years ago
|
--disable-make-embedded \
|
||
9 years ago
|
--disable-valgrind \
|
||
|
${myconf}
|
||
|
}
|