summaryrefslogtreecommitdiff
path: root/sci-libs/starparse
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/starparse
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/starparse')
-rw-r--r--sci-libs/starparse/Manifest6
-rw-r--r--sci-libs/starparse/files/starparse-1.0-guile1.8.patch60
-rw-r--r--sci-libs/starparse/metadata.xml11
-rw-r--r--sci-libs/starparse/starparse-1.0-r1.ebuild32
4 files changed, 109 insertions, 0 deletions
diff --git a/sci-libs/starparse/Manifest b/sci-libs/starparse/Manifest
new file mode 100644
index 000000000000..6936531474b2
--- /dev/null
+++ b/sci-libs/starparse/Manifest
@@ -0,0 +1,6 @@
+AUX starparse-1.0-guile1.8.patch 1598 SHA256 903ef428f181005fecca241203e96df7fbbbeaa6e5308c851b10674d3fccf1e6 SHA512 bc6b7cdc93486e42035ea7e5d8240194e800958b572437c6cf6a38cf0c4a8e928ae44d001560ec27124cbf4a3b71950ad7e65dbfea337a66ead94efab59eb2ef WHIRLPOOL 15f9a493ec3d9db0d644ba37af69261bec0ee5ad18888937f11c9ebc787c286dc3228334d6ff9b85851ac78a83ff9075149339b1d262025c348d59c03a4d2a5b
+DIST starparse-1.0.tar.bz2 5466370 SHA256 0ff25bb00c9481136bd060660340a44095902e17d75cc11d749ace597b5f4c61 SHA512 47e862258281a3faa506d4eb573a2819a9f5b1cb16828c4951d5d23bbfa8877d9b737ca0b33136dcf8ae0e96ecc9d310ba65a5b7cf1fe18ab8beb092f2342e9a WHIRLPOOL 6bb9a9c5b60888045d64b8890c278c97f80b4abb95678f6db166d23c744ac106f0db3913f77e4bda958c8edf8a51f0f7bcd6a93790fe2691081ec231b2ff11cb
+EBUILD starparse-1.0-r1.ebuild 850 SHA256 fe7fadbadedbd493751746df87aac663337d5f98a15e3d45f2f8bbd5f0d4d130 SHA512 72e4e5ed295768e78aaa2123b6cb8b47dbe5ecce99531fe8c9b39f923e96765b3abda36de7ddb677b8897fd196fb1104fdfac90038fac16c1f366d8e488d0826 WHIRLPOOL 69f51e69a0764e35cf4e10188a93526bf63d3bde9eb733c30f2ad1464f765b1bac2c755420b8bf70b76700ce45ed97552a4f7c692309767328ee9a3345f74a4a
+MISC ChangeLog 3020 SHA256 7b59b44f20f28feecf4b29623a388df520870a526631ac8d89590ec964f5c2bd SHA512 112bd84fc80942237bb77db09a70b101bf988bd21b832a10d809b184be2a4d74dd973b4709daadc92a40294b4aacaa3353fc08b9d7f01793910119793f215fdd WHIRLPOOL 6bd0f55036b0bbe0f9f93c616e7ac3352e64a174ea50c9fc96f80e8171bdb3dedc1e69f18eaa477f2fae854cb6c874e13406a00b18fdc1784fbea31e17d68311
+MISC ChangeLog-2015 1476 SHA256 4a41278ce43fcfe07fb58077a0d8a68bf798628270a6fe77a37c65a88c9e04b2 SHA512 36c298fbe6c3ed3769b79e3394fc6e9ebedbbbc49838adf3aac20a100f6d51e24b5f2d7c9a665a37474bedb5af1b43f609fcfe4eac8944977bf80adc24861b35 WHIRLPOOL 7c218ed4b36f53c0c153619824de3a45b6436ed68a8286e528800d80d1aae2f4cd0351c2cbd6b1e6eafb89b94ac93b66f0f75cf31ba81066f6e9d781203a6949
+MISC metadata.xml 354 SHA256 2a9c15bf8db11104a2364b5e3347ff3d001375a17d44f9b5ff83ab5c8fc7fd4c SHA512 08b0512376b310bac7c53e9e5b6a5b2829a9435c8fa49962e3c156d2af7d379ba6b737e6cd40c2d9278a25cd73f8272e34779d734645e20c5da34515a2840232 WHIRLPOOL 0e2e8070262616621ee52ab4c6253fc187efaaa45841742376f997ea51431ffc4ff63b9064835f793c5240247e3e5667af3e82904382c393635067e24293e02d
diff --git a/sci-libs/starparse/files/starparse-1.0-guile1.8.patch b/sci-libs/starparse/files/starparse-1.0-guile1.8.patch
new file mode 100644
index 000000000000..1d6e176b079e
--- /dev/null
+++ b/sci-libs/starparse/files/starparse-1.0-guile1.8.patch
@@ -0,0 +1,60 @@
+--- src/guile-binding.c
++++ src/guile-binding.c
+@@ -61,10 +61,10 @@
+ char* filter_string = NULL;
+ char* fname = "-";
+
+- if (SCM_NFALSEP(filter_string_scm))
++ if (scm_is_true(filter_string_scm))
+ filter_string = scm_to_locale_string(filter_string_scm);
+
+- if (SCM_NFALSEP(fname_scm))
++ if (scm_is_true(fname_scm))
+ fname = scm_to_locale_string(fname_scm);
+
+ ship_item_cb = ship_item_scm;
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -6,13 +6,10 @@
+ libstarparse_la_SOURCES =\
+ parser.y lexer.l starparse.h
+
+-libstarparse_la_CFLAGS =
+-libstarparse_la_LDFLAGS =
+-
+ if ENABLE_GUILE
+ libstarparse_la_SOURCES += guile-binding.c guile-compat.h
+-libstarparse_la_CFLAGS += @GUILE_CFLAGS@
+-libstarparse_la_LDFLAGS += @GUILE_LDFLAGS@ -lpthread
++libstarparse_la_CFLAGS = @GUILE_CFLAGS@
++libstarparse_la_LIBADD = @GUILE_LIBS@ -lpthread
+ endif
+
+
+--- configure.ac
++++ configure.ac
+@@ -10,18 +10,13 @@
+
+ AM_INIT_AUTOMAKE
+
+-AC_ARG_ENABLE(guile,
++AC_ARG_ENABLE([guile],
+ AS_HELP_STRING([--enable-guile],
+- [build bindings for guile scheme interpreter]),
+- USE_GUILE=$enable_guile,
+- USE_GUILE=yes) # default value
+-
+-if test "x$USE_GUILE" = "xyes";
+-then
+- GUILE_FLAGS
+-fi
+-
+-AM_CONDITIONAL(ENABLE_GUILE, test "x$USE_GUILE" = "xyes")
++ [build bindings for guile scheme interpreter]))
++AS_IF([test "x$enable_guile" = "xyes"], [
++ PKG_CHECK_MODULES([GUILE], [guile-1.8])
++])
++AM_CONDITIONAL(ENABLE_GUILE, test "x$enable_guile" = "xyes")
+
+ AC_CONFIG_FILES([Makefile
+ starparse-env
diff --git a/sci-libs/starparse/metadata.xml b/sci-libs/starparse/metadata.xml
new file mode 100644
index 000000000000..9fc24da1501f
--- /dev/null
+++ b/sci-libs/starparse/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">starparse</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/starparse/starparse-1.0-r1.ebuild b/sci-libs/starparse/starparse-1.0-r1.ebuild
new file mode 100644
index 000000000000..3d11e67b51fd
--- /dev/null
+++ b/sci-libs/starparse/starparse-1.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils
+
+DESCRIPTION="Library for parsing NMR star files (peak-list format) and CIF files"
+HOMEPAGE="http://burrow-owl.sourceforge.net/"
+#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+# Created from rev 19 @ http://oregonstate.edu/~benisong/software/projects/starparse/releases/1.0
+SRC_URI="http://dev.gentooexperimental.org/~jlec/distfiles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="guile static-libs test"
+
+REQUIRED_USE="test? ( guile )"
+
+RDEPEND="guile? ( dev-scheme/guile:12 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-guile1.8.patch )
+
+src_configure() {
+ local myeconfargs=( $(use_enable guile) )
+ autotools-utils_src_configure
+}