mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-libs/gpds: fix issue with static linking targets in CMake
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -19,18 +19,22 @@ fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="static-libs test"
|
||||
IUSE="examples +spdlog static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
DOCS=( license.txt readme.md )
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
use static-libs || sed -i -e '/TARGET-STATIC/d' "${S}"/lib/CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DGPDS_BUILD_EXAMPLES=$(usex examples)
|
||||
-DGPDS_BUILD_TESTS=$(usex test)
|
||||
-DGPDS_FEATURE_SPDLOG=ON
|
||||
-DGPDS_FEATURE_SPDLOG=$(usex spdlog)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
@@ -38,5 +42,5 @@ src_configure() {
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||
# use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||
}
|
||||
@@ -19,18 +19,22 @@ fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="static-libs test"
|
||||
IUSE="examples +spdlog static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
DOCS=( license.txt readme.md )
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
use static-libs || sed -i -e '/TARGET-STATIC/d' "${S}"/lib/CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DGPDS_BUILD_EXAMPLES=$(usex examples)
|
||||
-DGPDS_BUILD_TESTS=$(usex test)
|
||||
-DGPDS_FEATURE_SPDLOG=ON
|
||||
-DGPDS_FEATURE_SPDLOG=$(usex spdlog)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
@@ -38,5 +42,5 @@ src_configure() {
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||
# use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||
}
|
||||
@@ -5,8 +5,13 @@
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="spdlog">Enable spdlog sink feature</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">simulton/gpds</remote-id>
|
||||
<bugs-to>https://github.com/simulton/gpds/issues</bugs-to>
|
||||
<changelog>https://github.com/simulton/gpds/releases</changelog>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
GPDS is a General Purpose Data Serializer library written in modern C++.
|
||||
@@ -17,4 +22,10 @@
|
||||
attributes in the resulting XML compared to just using traditional "key" and
|
||||
"value" tags.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
GPDS 是一个用现代 C++ 编写的通用数据序列化器库。它允许以通用格式将 C++
|
||||
类与 XML 文件序列化,该通用格式可以由其他 XML 处理软件处理(或只是为了
|
||||
可读性)。与仅使用传统的“键”和“值”标签相比,GPDS 使用户能够完全控制生成
|
||||
的标签名称和结果 XML 中的属性。
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user