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 98CE713877A for ; Mon, 7 Jul 2014 06:36:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82979E086A; Mon, 7 Jul 2014 06:36:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AFA69E0826 for ; Mon, 7 Jul 2014 06:36:50 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BDA3334003F for ; Mon, 7 Jul 2014 06:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id C2CA8193E5 for ; Mon, 7 Jul 2014 06:36:47 +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: <1404678712.20fec395aeec140cb11e0cde9c7c486434e36f5a.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/vgm/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/vgm/ChangeLog sci-physics/vgm/vgm-9999.ebuild X-VCS-Directories: sci-physics/vgm/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 20fec395aeec140cb11e0cde9c7c486434e36f5a X-VCS-Branch: master Date: Mon, 7 Jul 2014 06:36:47 +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: e92b6a32-2e2b-4e04-a067-42b0218eddda X-Archives-Hash: 05eb86a2579b220ac0338a2d509dd6c8 commit: 20fec395aeec140cb11e0cde9c7c486434e36f5a Author: Oliver Freyermuth googlemail com> AuthorDate: Sun Jul 6 20:31:52 2014 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sun Jul 6 20:31:52 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=20fec395 New live ebuild for VGM, adapting to fixes for cmake install paths in upstream (no need to manually install in ebuild anymore). Released VGM-4.00 does not have these fixes yet, I am discussing with upstream whether they can also provide some tarballs of released versions (as sourceforge svn-snapshotting is unusable for us) and delay packaging of VGM-4.00 until then. --- sci-physics/vgm/ChangeLog | 6 ++++ sci-physics/vgm/vgm-9999.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/sci-physics/vgm/ChangeLog b/sci-physics/vgm/ChangeLog index 78f7e21..a316389 100644 --- a/sci-physics/vgm/ChangeLog +++ b/sci-physics/vgm/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*vgm-9999 (06 Jul 2014) + + 06 Jul 2014; Oliver Freyermuth +vgm-9999.ebuild: + New live ebuild for VGM, adapting to fixes for cmake install paths in upstream + (no need to manually install in ebuild anymore). + 03 Apr 2014; Oliver Freyermuth vgm-3.06.ebuild: Use zip-snapshot mirrored by jlec, sourceforge cannot automatically recreate them and changes CRC each time diff --git a/sci-physics/vgm/vgm-9999.ebuild b/sci-physics/vgm/vgm-9999.ebuild new file mode 100644 index 0000000..ddadd99 --- /dev/null +++ b/sci-physics/vgm/vgm-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils versionator subversion + +if [[ ${PV} == *9999* ]]; then + ESVN_REPO_URI="svn://svn.code.sf.net/p/vgm/code/trunk/vgm" + KEYWORDS="" +else + # .zip-snapshot can be recreated by visiting + # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-') + TAG_VER="${PN}-code-731-tags-v$(replace_all_version_separators '-')" + SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip" + S=${WORKDIR}/${TAG_VER}/${PN} + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Virtual Geometry Model for High Energy Physics Experiments" +HOMEPAGE="http://ivana.home.cern.ch/ivana/VGM.html" + +LICENSE="GPL-2" +SLOT="0" +IUSE="doc examples +geant4 +root test xml" + +RDEPEND=" + sci-physics/clhep:= + root? ( sci-physics/root:= ) + geant4? ( >=sci-physics/geant-4.9.6 ) + xml? ( dev-libs/xerces-c )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) + test? ( geant4? ( xml? ( >=sci-physics/geant-4.9.6[gdml] ) ) )" + +src_configure() { + local mycmakeargs=( + -DCLHEP_DIR="${EROOT}usr" + $(cmake-utils_use_with examples) + $(cmake-utils_use examples VGM_INSTALL_EXAMPLES) + $(cmake-utils_use_with geant4) + $(cmake-utils_use_with root) + $(cmake-utils_use_with test) + $(cmake-utils_use_with xml xercesc) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd packages + doxygen || die + fi +} + +src_test() { + cd "${BUILD_DIR}"/test + ./test_suite.sh || die +} + +src_install() { + cmake-utils_src_install + cd doc || die + dodoc README todo.txt VGMhistory.txt VGM.html VGMversions.html + use doc && dohtml -r html/* +}