2018-11-25 07:48:26 +01:00
|
|
|
# Copyright 1999-2018 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit cmake-utils
|
|
|
|
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="Simple libravatar server."
|
|
|
|
HOMEPAGE="https://schlomp.space/tastytea/libravatarserv"
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
EGIT_REPO_URI="https://schlomp.space/tastytea/libravatarserv.git"
|
|
|
|
else
|
2018-11-28 11:08:47 +01:00
|
|
|
SRC_URI="https://schlomp.space/tastytea/libravatarserv/archive/${PV}.tar.gz
|
|
|
|
-> ${P}.tar.gz"
|
2018-11-25 07:48:26 +01:00
|
|
|
fi
|
|
|
|
|
2018-11-27 14:50:35 +01:00
|
|
|
LICENSE="GPL-3"
|
2018-11-25 07:48:26 +01:00
|
|
|
SLOT="0"
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
KEYWORDS=""
|
|
|
|
else
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
IUSE=""
|
|
|
|
|
2018-11-25 11:03:21 +01:00
|
|
|
RDEPEND="
|
2018-11-25 07:48:26 +01:00
|
|
|
dev-libs/crypto++
|
|
|
|
media-gfx/imagemagick
|
|
|
|
dev-libs/libxdg-basedir
|
|
|
|
"
|
2018-11-25 11:03:21 +01:00
|
|
|
DEPEND="
|
|
|
|
dev-util/cmake
|
2018-12-23 20:51:55 +01:00
|
|
|
${RDEPEND}
|
|
|
|
"
|
2018-11-25 07:48:26 +01:00
|
|
|
|
2018-12-09 20:15:23 +01:00
|
|
|
DOCS="README.md doc/nginx-example.conf"
|
|
|
|
|
2018-11-25 07:48:26 +01:00
|
|
|
if [[ "${PV}" != "9999" ]]; then
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
fi
|
2018-11-28 11:08:47 +01:00
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
cmake-utils_src_prepare
|
|
|
|
sed -i "s|\${CMAKE_INSTALL_DOCDIR}|\${CMAKE_INSTALL_DATAROOTDIR}/doc/${P}|" \
|
|
|
|
CMakeLists.txt || die "Build script modification failed"
|
|
|
|
}
|