This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/www-misc/remwharead/remwharead-0.8.0.ebuild
tastytea f6b8c41bff
www-misc/remwharead: Version bump 0.8.0.
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2019-09-06 02:30:39 +02:00

79 lines
1.4 KiB
Bash

# 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
KEYWORDS="~amd64 ~x86"
fi
IUSE="doc +firefox test"
RDEPEND="
>=dev-cpp/curlpp-0.8.1
dev-libs/libxdg-basedir
dev-db/vsqlite++
dev-libs/icu
"
DEPEND="
${RDEPEND}
dev-util/cmake
app-text/asciidoc
dev-cpp/popl
test? ( dev-cpp/catch )
doc? ( app-doc/doxygen )
"
if [[ "${PV}" != "9999" ]]; then
S="${WORKDIR}/${PN}"
fi
src_configure() {
local mycmakeargs=(
-DWITH_TESTS="$(usex test)"
-DWITH_MOZILLA="$(usex firefox)"
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
if use doc; then
./build_doc.sh
fi
}
src_install() {
if use doc; then
HTML_DOCS="doc/html/*"
fi
cmake-utils_src_install
}
pkg_postinst() {
if use firefox; then
elog "The firefox useflag only installs the wrapper needed for the" \
"extension, not the extension itself."
fi
}