2019-05-16 13:17:11 +02:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit cmake-utils
|
|
|
|
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="Saves URIs of things you want to remember in a database."
|
|
|
|
HOMEPAGE="https://schlomp.space/tastytea/remwharead"
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
EGIT_REPO_URI="https://schlomp.space/tastytea/remwharead.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://schlomp.space/tastytea/remwharead/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
KEYWORDS=""
|
|
|
|
else
|
2019-05-17 03:27:22 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2019-05-16 13:17:11 +02:00
|
|
|
fi
|
2019-11-28 12:26:15 +01:00
|
|
|
IUSE="doc +firefox rofi test"
|
2019-05-16 13:17:11 +02:00
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-cpp/curlpp-0.8.1
|
|
|
|
dev-libs/libxdg-basedir
|
|
|
|
dev-db/vsqlite++
|
2019-07-26 01:48:49 +02:00
|
|
|
dev-libs/icu
|
2019-11-28 12:26:15 +01:00
|
|
|
rofi? ( x11-misc/rofi )
|
2019-05-16 13:17:11 +02:00
|
|
|
"
|
|
|
|
DEPEND="
|
2019-07-29 05:50:10 +02:00
|
|
|
${RDEPEND}
|
2019-05-16 13:17:11 +02:00
|
|
|
dev-util/cmake
|
|
|
|
app-text/asciidoc
|
2019-05-16 21:52:06 +02:00
|
|
|
dev-cpp/popl
|
2019-05-22 11:30:11 +02:00
|
|
|
test? ( dev-cpp/catch )
|
2019-07-29 05:50:10 +02:00
|
|
|
doc? ( app-doc/doxygen )
|
2019-05-16 13:17:11 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
if [[ "${PV}" != "9999" ]]; then
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DWITH_TESTS="$(usex test)"
|
2019-05-21 17:35:56 +02:00
|
|
|
-DWITH_MOZILLA="$(usex firefox)"
|
2019-05-16 13:17:11 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
2019-05-21 17:35:56 +02:00
|
|
|
|
2019-07-29 05:50:10 +02:00
|
|
|
src_compile() {
|
|
|
|
cmake-utils_src_compile
|
|
|
|
|
|
|
|
if use doc; then
|
2019-11-28 12:26:15 +01:00
|
|
|
./build_doc.sh || die
|
2019-07-29 05:50:10 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
if use doc; then
|
|
|
|
HTML_DOCS="doc/html/*"
|
|
|
|
fi
|
|
|
|
|
2019-11-28 12:26:15 +01:00
|
|
|
use rofi && dobin scripts/remwharead-rofi || die
|
|
|
|
|
2019-07-29 05:50:10 +02:00
|
|
|
cmake-utils_src_install
|
|
|
|
}
|
|
|
|
|
2019-05-21 17:35:56 +02:00
|
|
|
pkg_postinst() {
|
|
|
|
if use firefox; then
|
2019-05-21 18:48:12 +02:00
|
|
|
elog "The firefox useflag only installs the wrapper needed for the" \
|
2019-05-21 17:35:56 +02:00
|
|
|
"extension, not the extension itself."
|
|
|
|
fi
|
|
|
|
}
|