Skip to content

Commit

Permalink
sci-libs/dcmtk: [QA] Add cmake-utils_src_prepare
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.11, Repoman-2.3.3
  • Loading branch information
SoapGentoo committed Oct 16, 2017
1 parent f378290 commit db18114
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions sci-libs/dcmtk/dcmtk-3.6.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
Expand Down Expand Up @@ -26,17 +26,19 @@ DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
media-gfx/graphviz"

src_prepare() {
PATCHES=(
"${FILESDIR}"/01_fix_perl_script_path.patch
"${FILESDIR}"/02_dcmtk_3.6.0-1.patch
"${FILESDIR}"/04_nostrip.patch
"${FILESDIR}"/dcmtk_version_number.patch
"${FILESDIR}"/png_tiff.patch
"${FILESDIR}"/regression_stacksequenceisodd.patch
"${FILESDIR}"/${PN}-asneeded.patch
"${FILESDIR}"/${PN}-gcc472-error.patch
)

epatch \
"${FILESDIR}"/01_fix_perl_script_path.patch \
"${FILESDIR}"/02_dcmtk_3.6.0-1.patch \
"${FILESDIR}"/04_nostrip.patch \
"${FILESDIR}"/dcmtk_version_number.patch \
"${FILESDIR}"/png_tiff.patch \
"${FILESDIR}"/regression_stacksequenceisodd.patch \
"${FILESDIR}"/${PN}-asneeded.patch \
"${FILESDIR}"/${PN}-gcc472-error.patch
src_prepare() {
cmake-utils_src_prepare

sed -e "s:share/doc/dcmtk:&-${PV}:" \
-e "s:DIR \"/:DIR \"/usr/:" \
Expand All @@ -56,7 +58,7 @@ src_prepare() {
}

src_configure() {
mycmakeargs="${mycmakeargs}
local mycmakeargs="${mycmakeargs}
-DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_PREFIX=/
$(cmake-utils_use tiff DCMTK_WITH_TIFF)
Expand Down

0 comments on commit db18114

Please sign in to comment.