From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 022EB138334 for ; Fri, 9 Aug 2019 16:19:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 147ADE0784; Fri, 9 Aug 2019 16:19:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA84CE0784 for ; Fri, 9 Aug 2019 16:19:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93F2A3496E5 for ; Fri, 9 Aug 2019 16:19:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43A3662C for ; Fri, 9 Aug 2019 16:19:40 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1565367483.3494cfeb45b8fefd8a39d3ffdbde30a5423a3740.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/dcmtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/dcmtk/dcmtk-3.6.4-r1.ebuild X-VCS-Directories: sci-libs/dcmtk/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 3494cfeb45b8fefd8a39d3ffdbde30a5423a3740 X-VCS-Branch: master Date: Fri, 9 Aug 2019 16:19:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f241a3c-152c-45d8-b7e6-c0f36726073b X-Archives-Hash: c7b32ee917434b7ed4fa623d94aa35fa commit: 3494cfeb45b8fefd8a39d3ffdbde30a5423a3740 Author: Horea Christian chymera eu> AuthorDate: Fri Aug 9 14:35:48 2019 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Aug 9 16:18:03 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3494cfeb sci-libs/dcmtk: FHS-compliant config file paths Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Horea Christian chymera.eu> Closes: https://github.com/gentoo/gentoo/pull/12656 Signed-off-by: Joonas Niilola gentoo.org> sci-libs/dcmtk/dcmtk-3.6.4-r1.ebuild | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/sci-libs/dcmtk/dcmtk-3.6.4-r1.ebuild b/sci-libs/dcmtk/dcmtk-3.6.4-r1.ebuild new file mode 100644 index 00000000000..f701d3e9f5b --- /dev/null +++ b/sci-libs/dcmtk/dcmtk-3.6.4-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="The DICOM Toolkit" +HOMEPAGE="https://dicom.offis.de/dcmtk.php.en" +SRC_URI="http://dicom.offis.de/download/dcmtk/release/${P}.tar.gz" + +LICENSE="OFFIS" +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +IUSE="doc png ssl tcpd tiff +threads xml zlib" + +RDEPEND=" + dev-libs/icu:= + virtual/jpeg:0 + png? ( media-libs/libpng:* ) + ssl? ( dev-libs/openssl:0= ) + tcpd? ( sys-apps/tcp-wrappers ) + tiff? ( media-libs/tiff:0 ) + xml? ( dev-libs/libxml2:2 ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + media-gfx/graphviz + doc? ( app-doc/doxygen )" + +src_prepare() { + cmake-utils_src_prepare + + sed -e "s:share/doc/dcmtk:&-${PV}:" \ + -e "s:DIR \"/:DIR \"/usr/:" \ + -e "s:usr/etc:etc:" \ + -e "s:/lib\":/$(get_libdir)\":" \ + -e "s:COPYRIGHT::" \ + -i CMakeLists.txt || die + sed -e 's:${CMAKE_INSTALL_PREFIX}/::' \ + -i dcmwlm/data/CMakeLists.txt doxygen/CMakeLists.txt || die + # Temporary workaround: docs are not built with CMake + sed -i -e '/include/d' doxygen/Makefile.in || die + + # fix -D deprecation warnings + sed -i -e "s|_BSD_SOURCE|_DEFAULT_SOURCE|g" \ + "${S}"/config/configure.in \ + "${S}"/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DDCMTK_WITH_ICU=ON + -DDCMTK_WITH_TIFF=$(usex tiff) + -DDCMTK_WITH_PNG=$(usex png) + -DDCMTK_WITH_XML=$(usex xml) + -DDCMTK_WITH_ZLIB=$(usex zlib) + -DDCMTK_WITH_OPENSSL=$(usex ssl) + -DDCMTK_WITH_DOXYGEN=$(usex doc) + -DDCMTK_WITH_THREADS=$(usex threads) + ) + + cmake-utils_src_configure + + if use doc; then + cd "${S}"/doxygen || die + econf + fi +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + emake -C "${S}"/doxygen + fi +} + +src_install() { + doman doxygen/manpages/man1/* + + if use doc; then + local HTML_DOCS=( "${S}"/doxygen/htmldocs/. ) + fi + cmake-utils_src_install +}