summaryrefslogtreecommitdiff
path: root/dev-libs/mdsplib
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 /dev-libs/mdsplib
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/mdsplib')
-rw-r--r--dev-libs/mdsplib/Manifest6
-rw-r--r--dev-libs/mdsplib/files/mdsplib-0.11-gentoo.patch46
-rw-r--r--dev-libs/mdsplib/mdsplib-0.11.ebuild32
-rw-r--r--dev-libs/mdsplib/metadata.xml5
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-libs/mdsplib/Manifest b/dev-libs/mdsplib/Manifest
new file mode 100644
index 000000000000..450917791a3b
--- /dev/null
+++ b/dev-libs/mdsplib/Manifest
@@ -0,0 +1,6 @@
+AUX mdsplib-0.11-gentoo.patch 1696 SHA256 4b327fbddeffca4a7675208fdc6a07e550f6ab011314d49572fb7f0ae33358ba SHA512 fe38e841473c82eababd0e40a7cf226f5545b1da0c957e50c737aaa8303a4aff6b5baf52b10dda5711c4313ce4712e9eee60e0b8d2a298fcf8c45be87f83ec46 WHIRLPOOL c8d42172b9478490af53f98c6868c8ee1b68a4ee048bfad3cae90a4744ee0b9b015c2c58876f403adf311dad7bc4438f0ffa97a1a0ac17fd7837ee0fc4846aa2
+DIST mdsplib-0.11.tar.gz 70435 SHA256 bef3e2ecce276e720b903de00ad244e3e56fc2684e91ce5570965819af9577da SHA512 5baf7c23884ab21d2111a05c97a988ff82b003f0b3243ce5fabe5a9757c149a007e7ec6e0baf80de4fa75630c640b2411598a0b06848c7b96fd6ef070e76a687 WHIRLPOOL 525774ac1e1cce1373060adb441325aa6cf68c702d4b22596d860cc81d2d90e96f5142d586b5f62d4c6833e1e8d7f019efa5b8677270590c2eab5ce02563676c
+EBUILD mdsplib-0.11.ebuild 697 SHA256 05807dc9dabb4e261d49643dbe184be0368af9b3b62593803ff4899d748f3dbc SHA512 8fd2e846db16bbd94402a5e44b30d4d2341a0677950cc89b9047585b2079ad06585f7ca95829e7adc0742a1e6767e8a329f321133e4bcbe3e4cdd7002eec53c6 WHIRLPOOL b34e5554ea1022e78d1cd1dae7500fa299c03156ea4ba254c4bab3438c196ad8daf657f307ef43f4df7c6497bb5945eeeac5b472376d20fd5b6a12b69d3c2566
+MISC ChangeLog 2554 SHA256 87a8f0af0dd86e0468c65cf577532f2a2675e5a7fa90ed33ee781c8a46e29377 SHA512 4283c7e3870a25203821b4a24e6c02e5b4296e4a6360d9eef0f5a7ae53436d3784b1c24c60466fe633343cd8aa70d74c084045b2359118b7bf98c5bcb158bada WHIRLPOOL bdce10f01b87d2fae90420acd4810c7952b8ecc9b8701d9812858b5c68a19e683c7def28d1ba4130574e4406cf2bd9b6e6412f91b743ab2bfdaf94dc46f11a33
+MISC ChangeLog-2015 1091 SHA256 2674c3d5923704044b81ca43fb3a4d747ebcb69988304d5886b834bca8c88a48 SHA512 56c24ad306aef5cb8af73560a9969048039514472fd278e6d15e0276e3e42b888aeafaa9f0e7d7881888d0edcbcbaa965a941899b1644722958cefbb92dcb236 WHIRLPOOL 1c30174213121594afe2240b3c778f78a65fd74e52abb16e88b09fb6ac5bbac64883fc5cee93e29d916f52ef3434a858f97e61558bd61832d429677b00696573
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-libs/mdsplib/files/mdsplib-0.11-gentoo.patch b/dev-libs/mdsplib/files/mdsplib-0.11-gentoo.patch
new file mode 100644
index 000000000000..92d96147bb72
--- /dev/null
+++ b/dev-libs/mdsplib/files/mdsplib-0.11-gentoo.patch
@@ -0,0 +1,46 @@
+diff -ur mdsplib-0.11.orig/Makefile mdsplib-0.11/Makefile
+--- mdsplib-0.11.orig/Makefile 2003-12-10 21:56:23.000000000 +0200
++++ mdsplib-0.11/Makefile 2009-08-06 13:33:03.000000000 +0300
+@@ -1,5 +1,6 @@
+-CC = gcc
+-CFLAGS = -O3
++AR ?= ar
++CC ?= gcc
++RANLIB ?= ranlib
+ LIBS =
+
+ library: libmetar.a
+@@ -7,11 +8,11 @@
+ all: dmetar library
+
+ libmetar.a: src/antoi.o src/charcmp.o src/dcdmetar.o src/dcdmtrmk.o src/fracpart.o src/prtdmetr.o src/stspack2.o src/stspack3.o
+- ar ruv libmetar.a src/antoi.o src/charcmp.o src/dcdmetar.o src/dcdmtrmk.o src/fracpart.o src/prtdmetr.o src/stspack2.o src/stspack3.o
+- ranlib libmetar.a
++ $(AR) ruv libmetar.a src/antoi.o src/charcmp.o src/dcdmetar.o src/dcdmtrmk.o src/fracpart.o src/prtdmetr.o src/stspack2.o src/stspack3.o
++ $(RANLIB) libmetar.a
+
+ dmetar: src/drvmetar.o libmetar.a
+- $(CC) $(CFLAGS) -o dmetar src/drvmetar.o libmetar.a $(LIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o dmetar src/drvmetar.o libmetar.a $(LIBS)
+
+ src/antoi.o: src/antoi.c src/local.h
+ $(CC) $(CFLAGS) -c src/antoi.c -o src/antoi.o
+@@ -48,5 +49,5 @@
+ chmod 0644 /usr/local/include/metar.h
+ cp libmetar.a /usr/local/lib/
+ chmod 0644 /usr/local/lib/libmetar.a
+- ranlib /usr/local/lib/libmetar.a
++ $(RANLIB) /usr/local/lib/libmetar.a
+
+diff -ur mdsplib-0.11.orig/src/local.h mdsplib-0.11/src/local.h
+--- mdsplib-0.11.orig/src/local.h 2003-12-10 23:30:56.000000000 +0200
++++ mdsplib-0.11/src/local.h 2009-08-06 13:27:03.000000000 +0300
+@@ -1175,7 +1175,7 @@
+ char *strupr(char *);
+ char *strlwr(char *);
+ /* char *strdup(char *); */
+-char *strndup(char *, int);
++/* char *strndup(char *, int); */
+ int strcmpi(char *, char *);
+
+ /* void *memccpy(void *, void *, int, unsigned); */
diff --git a/dev-libs/mdsplib/mdsplib-0.11.ebuild b/dev-libs/mdsplib/mdsplib-0.11.ebuild
new file mode 100644
index 000000000000..6247e54974ef
--- /dev/null
+++ b/dev-libs/mdsplib/mdsplib-0.11.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="METAR Decoder Software Package Library"
+HOMEPAGE="http://limulus.net/mdsplib/"
+SRC_URI="http://limulus.net/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+ tc-export AR CC RANLIB
+ emake all || die "emake all failed"
+}
+
+src_install() {
+ insinto /usr/include
+ insopts -m0644
+ doins metar.h || die "doins failed"
+ dolib.a libmetar.a || die "dolib.a failed"
+ dodoc README README.MDSP
+ dobin dmetar || die "dobin failed"
+}
diff --git a/dev-libs/mdsplib/metadata.xml b/dev-libs/mdsplib/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-libs/mdsplib/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>