From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-chemistry/massxpert/Manifest | 6 ++ .../massxpert/files/massxpert-3.4.0-gentoo.patch | 91 ++++++++++++++++++++++ sci-chemistry/massxpert/massxpert-3.4.0.ebuild | 55 +++++++++++++ sci-chemistry/massxpert/metadata.xml | 11 +++ 4 files changed, 163 insertions(+) create mode 100644 sci-chemistry/massxpert/Manifest create mode 100644 sci-chemistry/massxpert/files/massxpert-3.4.0-gentoo.patch create mode 100644 sci-chemistry/massxpert/massxpert-3.4.0.ebuild create mode 100644 sci-chemistry/massxpert/metadata.xml (limited to 'sci-chemistry/massxpert') diff --git a/sci-chemistry/massxpert/Manifest b/sci-chemistry/massxpert/Manifest new file mode 100644 index 000000000000..fa9f93013bdd --- /dev/null +++ b/sci-chemistry/massxpert/Manifest @@ -0,0 +1,6 @@ +AUX massxpert-3.4.0-gentoo.patch 2990 SHA256 f70439cd7a35b0582fa0adf862e858124dd0481ae00f455a953fa32a8b9f2aca SHA512 a3901821c803e28ff28f507ccf0509e58184c1ce02fcc76ebf4e36af4130ccee0cbe94212802b8caa03cfad2d09d926ed805b57eaf49ddc49e9045eeba0e6d25 WHIRLPOOL 615d0de16100b7d5324ef9123009c609bc60e8780457de24c919614de4dbef15a9bcba980e70980872306dc9c5d07be95bc423f6b2ce4cd6a6d277d605386622 +DIST massxpert-3.4.0.tar.bz2 16544044 SHA256 b06314722b4cbdf68dc76e55933a79487848c655fc65341a8dbc707ed89cc9e8 SHA512 50e8eaab145ab7fa225725b113d6840168b88db7d2ee194b176bc88eabf4f44c20f8dc0680986d659de1f94f2e0c6ae10d54e17e2d8b3b5aa6a9a9bf57a508de WHIRLPOOL 4578801c2dd4eee7390eadb299f3d55af29d0a48365f96ba6d6488a07792e47882e191f8eda05b6b261d9a972bf7f92f160d4a5fbbcc216ed7ffda32fcfee6ed +EBUILD massxpert-3.4.0.ebuild 1141 SHA256 b0ddfc938b7fd93fa2133c1e7f558f2cebdb8a7c5f7a0bff78f74ef3913c6959 SHA512 4dbcf7902d4722599fce2cf944aaa8df4fbe4dee16305a59f75dfc3d36f0f3ab5fa940e016430a9c43b402170866d74ee2a61407ccd73647ecc5ea17d89c289c WHIRLPOOL 95de82125b46b0528bab5bff4e2703c874367e15f21a7d449fbcefb1b5410b3f1f23925ac580829ce16351632f3563c8279620e3a34a01d84f08c07b792d0a71 +MISC ChangeLog 2860 SHA256 3958398fef3c60a7a0b82675cc34d828583f67cabeda8dbde05b01605deca306 SHA512 cc821191fcdf194f0b3f8198aff97241c1415e88aa5805cfe8d2952b6cf0574594b95f3714e965e20411778eb37c6cc4061b05c1442fa5d4424bb07df5cce8cf WHIRLPOOL 01a1c0fe26e03ae697ec8f4d1b41a318e52824e5cadf46857f75911ad3276c5373c4650b3910c9426d804c29d22cee7af3f613ffc369c1c85e0961552226e949 +MISC ChangeLog-2015 2478 SHA256 dda315b03dd952605e50d5ec8b630ddfde6b13e6fae46af1415497a2ea92ae23 SHA512 6d147c0b33e022d09e2a9c94fbdf546d6f87d2c8494bed149b285130f2abc7bbbfc61312b527675b220c3c75948570deb0e1362e4b234b9d7fafe1006fd76116 WHIRLPOOL b74c3b0f3868249b9a98dc7e6e2170ed068d35bda5d10e3db7a431aef2f6786aae3a742b5dc7db6dd42de693a651b431c82526deadd636a9be8428863239f4db +MISC metadata.xml 395 SHA256 ff36b506db8ce521f60da36cd854503e99050364101687450e46148b074d7db7 SHA512 52ea34dcafba93e544a877ffda573b2fe7f11e060ebf8a5cf193541c7c80642a1499d63980fcf12bdc8200a9e9ccce29c592ec7f6f3b8a6129a23b176f2012d0 WHIRLPOOL 05d83584d85ae6e8d5bca9bd84353d94c4b028a4eba394342179ea578416f9ce30398cdaea683234146f5516ef9ee9c7efdef65ea5b9d8ae45f3e76d367a5cc3 diff --git a/sci-chemistry/massxpert/files/massxpert-3.4.0-gentoo.patch b/sci-chemistry/massxpert/files/massxpert-3.4.0-gentoo.patch new file mode 100644 index 000000000000..fc0fc4f606cf --- /dev/null +++ b/sci-chemistry/massxpert/files/massxpert-3.4.0-gentoo.patch @@ -0,0 +1,91 @@ + CMakeLists.txt | 20 ++++---------------- + gui/configurationSettingsDlg.cpp | 10 ++++------ + 2 files changed, 8 insertions(+), 22 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fec954b..b87d157 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,10 +24,10 @@ SET (CMAKE_VERBOSE_MAKEFILE ON) + ############################################################# + # Enable warnings and treat them as errors, on GNU/Linux only + IF (UNIX) +- SET (PEDANTIC TRUE CACHE BOOL "Should we compile with -Wall -Werror.") ++ SET (PEDANTIC TRUE CACHE BOOL "Should we compile with -Wall.") + + IF (PEDANTIC) +- ADD_DEFINITIONS (-Wall -Werror) ++ ADD_DEFINITIONS (-Wall) + ENDIF (PEDANTIC) + ENDIF (UNIX) + +@@ -64,12 +64,12 @@ IF (UNIX AND NOT APPLE) + # Plugin-specific stuff, some distros set CMAKE_INSTALL_LIBDIR to + # /usr/lib64 (Fedora64, for example) + IF (NOT CMAKE_INSTALL_LIBDIR) +- SET (CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib) ++ SET (CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + ENDIF (NOT CMAKE_INSTALL_LIBDIR) + SET (MASSXPERT_PLUGIN_DIR ${CMAKE_INSTALL_LIBDIR}/massxpert/plugins) + + SET (MASSXPERT_LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/massxpert/locales) +- SET (MASSXPERT_DOC_DIR ${CMAKE_INSTALL_PREFIX}/share/doc/massxpert) ++ SET (MASSXPERT_DOC_DIR ${CMAKE_INSTALL_PREFIX}/share/doc/massxpert-${VERSION}) + SET (MASSXPERT_USERMAN_DIR ${MASSXPERT_DOC_DIR}/usermanual) + ENDIF (UNIX AND NOT APPLE) + +@@ -144,10 +144,6 @@ IF (${BUILD_PROGRAM}) + ############### + # install stuff + +- # The license file +- INSTALL (FILES COPYING +- DESTINATION ${MASSXPERT_DOC_DIR}) +- + # The desktop file + IF (UNIX AND NOT APPLE) + INSTALL (FILES massxpert.desktop +@@ -185,10 +181,6 @@ IF (${BUILD_DATA}) + ############### + # install stuff + +- # The license file +- INSTALL (FILES COPYING +- DESTINATION ${MASSXPERT_DOC_DIR}) +- + # The manual pages (data) + IF (UNIX AND NOT APPLE) + INSTALL (FILES massxpert-data.7 +@@ -219,10 +211,6 @@ IF (${BUILD_USERMANUAL}) + ############### + # install stuff + +- # The license file +- INSTALL (FILES COPYING +- DESTINATION ${MASSXPERT_DOC_DIR}) +- + # The manual pages (user manual) + IF (UNIX AND NOT APPLE) + INSTALL (FILES massxpert-doc.7 +diff --git a/gui/configurationSettingsDlg.cpp b/gui/configurationSettingsDlg.cpp +index bf595d5..82cad21 100644 +--- a/gui/configurationSettingsDlg.cpp ++++ b/gui/configurationSettingsDlg.cpp +@@ -309,13 +309,11 @@ namespace massXpert + bool + ConfigurationSettingsDlg::checkLocalizationDir(const QDir &dir) + { +- // At the moment there is the french translation: massxpert_fr.qm ++ // Gentoo provides optional installing of translations. ++ // If you decide not to have translations, then this check ++ // would fail. + +- QString filePath(dir.absolutePath() + +- QDir::separator() + +- "massxpert_fr.qm"); +- +- return QFile::exists(filePath); ++ return true; + } + + diff --git a/sci-chemistry/massxpert/massxpert-3.4.0.ebuild b/sci-chemistry/massxpert/massxpert-3.4.0.ebuild new file mode 100644 index 000000000000..068f083b4bf2 --- /dev/null +++ b/sci-chemistry/massxpert/massxpert-3.4.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="Software suite to predict/analyze mass spectrometric data on (bio)polymers" +HOMEPAGE="http://massxpert.org" +SRC_URI="http://download.tuxfamily.org/${PN}/source/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc" + +RDEPEND="dev-qt/qtsvg:4[debug?]" +DEPEND="${DEPEND} + doc? ( virtual/latex-base )" + +MASSXPERT_LANGS="fr" + +for L in ${MASSXPERT_LANGS}; do + IUSE="${IUSE} linguas_${L}" +done + +src_prepare() { + epatch "${FILESDIR}/${P}-gentoo.patch" + + local langs= + for lingua in ${LINGUAS}; do + if has ${lingua} ${MASSXPERT_LANGS}; then + langs="${langs} ${PN}_${lingua}.qm" + fi + done + + sed -i -e "s/\(SET (massxpert_TRANSLATIONS \).*/\1${langs})/" \ + gui/CMakeLists.txt || die "setting up translations failed" +} + +src_configure() { + local mycmakeargs=( + -DBUILD_PROGRAM=1 + -DBUILD_DATA=1 + ) + use doc && mycmakeargs+=( -DBUILD_USERMANUAL=1 ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + doicon "gui/images/${PN}-icon-32.xpm" + dodoc TODO +} diff --git a/sci-chemistry/massxpert/metadata.xml b/sci-chemistry/massxpert/metadata.xml new file mode 100644 index 000000000000..33ffde3e6f9e --- /dev/null +++ b/sci-chemistry/massxpert/metadata.xml @@ -0,0 +1,11 @@ + + + + + sci-chemistry@gentoo.org + Gentoo Chemistry Project + + +Prediction and analysis of mass spectrometric data for proteomic projects. + + -- cgit v1.2.3