updated ebuilds
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
a5c1ce642d
commit
259ffad483
|
@ -2,20 +2,21 @@ EAPI=6
|
||||||
inherit cmake-utils
|
inherit cmake-utils
|
||||||
|
|
||||||
DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API."
|
DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API."
|
||||||
HOMEPAGE="https://git.schlomp.space/tastytea/mastodon-cpp"
|
HOMEPAGE="https://schlomp.space/tastytea/mastodon-cpp"
|
||||||
SRC_URI="https://git.schlomp.space/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://schlomp.space/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="doc debug examples"
|
IUSE="doc debug examples"
|
||||||
RDEPEND=">=dev-cpp/curlpp-0.7.3
|
RDEPEND=">=dev-cpp/curlpp-0.8.1
|
||||||
>=dev-libs/jsoncpp-1.8.1"
|
>=dev-libs/jsoncpp-1.8.4"
|
||||||
DEPEND=">=dev-util/cmake-3.9.6
|
DEPEND=">=dev-util/cmake-3.9.6
|
||||||
doc? ( >=app-doc/doxygen-1.8.13-r1 )
|
doc? ( >=app-doc/doxygen-1.8.14-r1 )
|
||||||
${RDEPEND}"
|
${RDEPEND}"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
default_src_unpack
|
default_src_unpack
|
||||||
|
|
||||||
mv ${PN} ${P}
|
mv ${PN} ${P}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,16 +31,18 @@ src_configure() {
|
||||||
else
|
else
|
||||||
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake-utils_src_configure
|
cmake-utils_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
# We won't let cmake handle the documentation, because it would install the
|
# We won't let cmake handle the documentation, because it would install the
|
||||||
# examples, no matter if we want them.
|
# examples, no matter if we want them.
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
cmake-utils_src_compile
|
||||||
|
|
||||||
if use doc; then
|
if use doc; then
|
||||||
./build_doc.sh
|
./build_doc.sh
|
||||||
fi
|
fi
|
||||||
cmake-utils_src_compile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
@ -53,6 +56,6 @@ src_install() {
|
||||||
dodoc ${file}
|
dodoc ${file}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake-utils_src_install
|
cmake-utils_src_install
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,49 +13,51 @@ SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE="doc debug examples"
|
IUSE="doc debug examples"
|
||||||
RDEPEND=">=dev-cpp/curlpp-0.8.1
|
RDEPEND=">=dev-cpp/curlpp-0.8.1
|
||||||
>=dev-libs/jsoncpp-1.8.1"
|
>=dev-libs/jsoncpp-1.8.4"
|
||||||
DEPEND=">=dev-util/cmake-3.9.6
|
DEPEND=">=dev-util/cmake-3.9.6
|
||||||
doc? ( >=app-doc/doxygen-1.8.13-r1 )
|
doc? ( >=app-doc/doxygen-1.8.14-r1 )
|
||||||
${RDEPEND}"
|
${RDEPEND}"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
git-r3_src_unpack
|
git-r3_src_unpack
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DWITH_DOC=NO
|
-DWITH_DOC=NO
|
||||||
-DWITH_EXAMPLES=NO
|
-DWITH_EXAMPLES=NO
|
||||||
-DWITH_TESTS=NO
|
-DWITH_TESTS=NO
|
||||||
)
|
)
|
||||||
if use debug; then
|
if use debug; then
|
||||||
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug)
|
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug)
|
||||||
else
|
else
|
||||||
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
||||||
fi
|
fi
|
||||||
cmake-utils_src_configure
|
|
||||||
|
cmake-utils_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
# We can not let cmake handle the documentation, because it would end up in
|
# We can not let cmake handle the documentation, because it would end up in
|
||||||
# doc/mastodon-cpp-${PROJECT_VERSION} instead of -9999
|
# doc/mastodon-cpp-${PROJECT_VERSION} instead of -9999
|
||||||
src_compile() {
|
src_compile() {
|
||||||
if use doc; then
|
cmake-utils_src_compile
|
||||||
./build_doc.sh
|
|
||||||
fi
|
if use doc; then
|
||||||
cmake-utils_src_compile
|
./build_doc.sh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
if use doc; then
|
if use doc; then
|
||||||
HTML_DOCS="doc/html/*"
|
HTML_DOCS="doc/html/*"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if use examples; then
|
if use examples; then
|
||||||
docinto examples
|
docinto examples
|
||||||
for file in examples/*.cpp; do
|
for file in examples/*.cpp; do
|
||||||
dodoc ${file}
|
dodoc ${file}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake-utils_src_install
|
cmake-utils_src_install
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue