changed spaces to tabs
This commit is contained in:
parent
40797afce0
commit
5dab8bf3cb
@ -9,50 +9,50 @@ 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.7.3
|
||||||
>=dev-libs/jsoncpp-1.8.1"
|
>=dev-libs/jsoncpp-1.8.1"
|
||||||
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.13-r1 )
|
||||||
${RDEPEND}"
|
${RDEPEND}"
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DWITH_DOC=NO
|
|
||||||
-DWITH_EXAMPLES=NO
|
|
||||||
-DWITH_TESTS=NO
|
|
||||||
)
|
|
||||||
if use debug; then
|
|
||||||
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug)
|
|
||||||
else
|
|
||||||
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
|
||||||
fi
|
|
||||||
cmake-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
default_src_unpack
|
default_src_unpack
|
||||||
mv ${PN} ${P}
|
mv ${PN} ${P}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DWITH_DOC=NO
|
||||||
|
-DWITH_EXAMPLES=NO
|
||||||
|
-DWITH_TESTS=NO
|
||||||
|
)
|
||||||
|
if use debug; then
|
||||||
|
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug)
|
||||||
|
else
|
||||||
|
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
|
||||||
|
fi
|
||||||
|
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() {
|
||||||
if use doc; then
|
if use doc; then
|
||||||
./build_doc.sh
|
./build_doc.sh
|
||||||
fi
|
fi
|
||||||
cmake-utils_src_compile
|
cmake-utils_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
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
Block a user