From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 99C6F13827E for ; Sun, 8 Dec 2013 17:39:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88B5DE09F4; Sun, 8 Dec 2013 17:39:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F8CAE09F3 for ; Sun, 8 Dec 2013 17:39:28 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4CAC233F374 for ; Sun, 8 Dec 2013 17:39:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E3EFBE55FD for ; Sun, 8 Dec 2013 17:39:25 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1386524208.d8cffa00b6cfdf63dbd585210478b2119fa7ce4f.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/xraylib/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/xraylib/xraylib-2.16.0.ebuild X-VCS-Directories: sci-libs/xraylib/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: d8cffa00b6cfdf63dbd585210478b2119fa7ce4f X-VCS-Branch: master Date: Sun, 8 Dec 2013 17:39:25 +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-Archives-Salt: 6582c417-e35b-4397-89ed-2f68f3fb0749 X-Archives-Hash: 573ad365697adb89a1c3448a462a0c9f commit: d8cffa00b6cfdf63dbd585210478b2119fa7ce4f Author: Chris Kerr cam ac uk> AuthorDate: Tue Dec 3 16:24:45 2013 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sun Dec 8 17:36:48 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d8cffa00 Added support for installing examples Removed cxx USE flag because I don't think C++ is optional --- sci-libs/xraylib/xraylib-2.16.0.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sci-libs/xraylib/xraylib-2.16.0.ebuild b/sci-libs/xraylib/xraylib-2.16.0.ebuild index 0090399..12a0837 100644 --- a/sci-libs/xraylib/xraylib-2.16.0.ebuild +++ b/sci-libs/xraylib/xraylib-2.16.0.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/tschoonj/xraylib/archive/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -IUSE="cxx examples fortran java lua perl python" +IUSE="examples fortran java lua perl python" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" @@ -54,4 +54,18 @@ src_compile() { else emake fi +} + +src_install() { + emake DESTDIR="${D}" install + dodoc ${DOCS} + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins example/*.c example/*.cpp + use java && doins example/*.java + use lua && doins example/*.lua + use perl && doins example/*.pl + use python && doins example/*.py + fi } \ No newline at end of file