diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/mdsplib | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/mdsplib')
-rw-r--r-- | dev-libs/mdsplib/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/mdsplib/files/mdsplib-0.11-gentoo.patch | 46 | ||||
-rw-r--r-- | dev-libs/mdsplib/mdsplib-0.11.ebuild | 32 | ||||
-rw-r--r-- | dev-libs/mdsplib/metadata.xml | 5 |
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-libs/mdsplib/Manifest b/dev-libs/mdsplib/Manifest new file mode 100644 index 000000000000..d81736e49b5e --- /dev/null +++ b/dev-libs/mdsplib/Manifest @@ -0,0 +1,4 @@ +AUX mdsplib-0.11-gentoo.patch 1696 BLAKE2B ffcac6d7bd2b7500b93aed0566ae198515dbe7d1cc8544ba8ee04b861be53ca938f328ffb68bc58891e16079c53b1247855a77416b43d59c5243c4fb4d6c6fc6 SHA512 fe38e841473c82eababd0e40a7cf226f5545b1da0c957e50c737aaa8303a4aff6b5baf52b10dda5711c4313ce4712e9eee60e0b8d2a298fcf8c45be87f83ec46 +DIST mdsplib-0.11.tar.gz 70435 BLAKE2B 8a2de901d8f386a989eedb95f85171e93d51e9c87c45b0fb6bfcb76bb3d6394a0a2453cdbbb6cd2b87e64a16eb18201107f7b61fb0747a1c9e53df77f0479c04 SHA512 5baf7c23884ab21d2111a05c97a988ff82b003f0b3243ce5fabe5a9757c149a007e7ec6e0baf80de4fa75630c640b2411598a0b06848c7b96fd6ef070e76a687 +EBUILD mdsplib-0.11.ebuild 557 BLAKE2B d59bf5fba6582c20ed1161c35030b4727e4a6e0519b2acbc66f68177ce0c473c58646d6560cc9dcc5c7faeb71d71ac6c4260a3e19571019fcd6640fc048b11ff SHA512 dbf14ed89a15d4f93042e9370c3ecdc12d40087a74f7444127bbb2cb7e1592639394108fdb12b271d78aab5519e3783122e24b1721d629c05897c9c4f5af51f8 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 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..47af62190af3 --- /dev/null +++ b/dev-libs/mdsplib/mdsplib-0.11.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit 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="" + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_configure() { + tc-export AR CC RANLIB +} + +src_compile() { + emake all +} + +src_install() { + dobin dmetar + doheader metar.h + dolib.a libmetar.a + einstalldocs +} 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> |