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/libezV24 | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/libezV24')
-rw-r--r-- | dev-libs/libezV24/Manifest | 5 | ||||
-rw-r--r-- | dev-libs/libezV24/files/libezV24-0.1.1-build.patch | 177 | ||||
-rw-r--r-- | dev-libs/libezV24/files/libezV24-0.1.1-test.patch | 20 | ||||
-rw-r--r-- | dev-libs/libezV24/libezV24-0.1.1.ebuild | 39 | ||||
-rw-r--r-- | dev-libs/libezV24/metadata.xml | 15 |
5 files changed, 256 insertions, 0 deletions
diff --git a/dev-libs/libezV24/Manifest b/dev-libs/libezV24/Manifest new file mode 100644 index 000000000000..5d097d26cafc --- /dev/null +++ b/dev-libs/libezV24/Manifest @@ -0,0 +1,5 @@ +AUX libezV24-0.1.1-build.patch 4869 BLAKE2B 13f3e7a7493825ff2d7242baf499a3844d360ae0cad1b95dee6a7042c08f53eb428bcc93ebf23d3f4ea10ef589f384aeff6f8e70e36cc00f5546ad495e5839f4 SHA512 d55ba03d30973739918902a21c0b9da9f1b4d74f8923f2aa14747a894f2ff2118699e7f98c1a436f8942e948190752b1e0b027d52225ba025957d5068ce321df +AUX libezV24-0.1.1-test.patch 468 BLAKE2B df6b55e96cc6ba565673321a71c5e33f279de628c1b86aa6ef4d32f6e019761747c3c8754c97899d50fd7a665bca1c2404f5fae6ac28e37f11cf1ee5e0f3bf40 SHA512 16547da68cc1f0156daa06f9280a18c58d5daa8bd528489546dcf190f4e76bc3d7574d604eff36d5f8e8768e0044dc31783e85523d09cabcebd89c0f2cde8006 +DIST libezV24-0.1.1.tar.gz 50515 BLAKE2B 5a4dfdb4e4875203cfc2c06a1d5966d79c84407539ad3b3419aea04e7fcfc5ba05e6e69d1a09d999a1c8820f35bd5adc7fe3d833ceb739e52f1246491d339034 SHA512 99b277a04354e2587567ae5f1ebc99e41d127ec94bf5de53021b94df8d731ce2f2ceacedd8b7fa29902cf98f5c4243bddaa96636e1f900f1434a3da857b0e6c5 +EBUILD libezV24-0.1.1.ebuild 850 BLAKE2B 39bf0a484c5bcc88d0aa7e7f85c4095d2535dda65dc535c22b901e0b06ebeab8756e3787fccb403a8e0fc39a79c727617ec29d362bfcba0e96d97b0bd984e4dd SHA512 51af56c72895d250580df08e10edc6d69bda29b4f134165440d59a731851ae20c50cdfe51943e18e87b98a5e23f74767f4790755b50f12853958e1a57e24d6cb +MISC metadata.xml 641 BLAKE2B e75047389f2e4125de93bb6bfca6ce5f33dbb416841c35712b066ba20f7a728fc3282665f684c377fd9359b780416eea9c1edc77593944250ffcfc046cb0172a SHA512 2ec206575cedf384e77716e3959bab5d359cfd16dde6b24f88f160d7e2bc8fe9d7916f6de771a9616f780d0da736d063cc1fd6d313c3e114a2c0f136df9847f5 diff --git a/dev-libs/libezV24/files/libezV24-0.1.1-build.patch b/dev-libs/libezV24/files/libezV24-0.1.1-build.patch new file mode 100644 index 000000000000..3550f02edf2e --- /dev/null +++ b/dev-libs/libezV24/files/libezV24-0.1.1-build.patch @@ -0,0 +1,177 @@ +diff -ur libezV24-0.1.1.orig/Makefile libezV24-0.1.1/Makefile +--- libezV24-0.1.1.orig/Makefile 2003-02-17 15:46:18.000000000 +0200 ++++ libezV24-0.1.1/Makefile 2008-01-15 10:47:13.000000000 +0200 +@@ -19,68 +19,63 @@ + # the base name of the library + SOBASE = ezV24 + +-# define the destination OS (currently only linux) +-PLATFORM=__LINUX__ +- +-# the base path where the file should be installed to. +-PREFIX = /usr/local ++# the base paths where the files should be installed to. ++PREFIX = /usr ++LIBDIR = $(PREFIX)/lib ++ ++# an additional prefix for building RPM packages. NOTE: don't forget to add a ++# trailing slash! ++DESTDIR = + + # generate the name of the output file in dependence of the development state. + # +-ifeq "${RELEASE}" "DEBUG" ++ifeq ($(RELEASE),DEBUG) + NAME = lib$(SOBASE).so.$(SORELEASE).dbg + else + NAME = lib$(SOBASE).so.$(VERSION) + endif + SONAME = lib$(SOBASE).so.$(SORELEASE) +-LIBNAME = lib$(SOBASE)-$(SORELEASE)_s.a ++LIBNAME = lib$(SOBASE).a + PLAINNAME = lib$(SOBASE).so + + # basename of the project + PROJECTNAME = libezV24-$(VERSION).$(PATCHLEVEL) + +-OBJS = ezV24.o snprintf.o ++STATIC_OBJS = ezV24.o snprintf.o ++SHARED_OBJS = $(patsubst %.o,%.lo,$(STATIC_OBJS)) + LIBS = + +- +-ifeq "${RELEASE}" "DEBUG" +-C_FLAG = -c -Wall -fPIC -D$(PLATFORM) $(INCDIR) +-C_DEFS = -DDEBUG -DBETA +-LFLAGS = $(LIBDIR) ++ifeq ($(RELEASE),DEBUG) ++CPPFLAGS += -DDEBUG -DBETA + else +-ifeq "${RELEASE}" "BETA" +-C_FLAG = -c -Wall -fPIC -O2 -D$(PLATFORM) $(INCDIR) +-C_DEFS = -DBETA +-LFLAGS = $(LIBDIR) ++ifeq ($(RELEASE),BETA) ++CPPFLAGS += -DBETA + else +-C_FLAG = -c -Wall -fPIC -O2 -D$(PLATFORM) $(INCDIR) +-C_DEFS = -DFINAL +-LFLAGS = -s $(LIBDIR) ++CPPFLAGS += -DFINAL + endif + endif + ++CC ?= gcc ++CPPFLAGS += -I. ++CFLAGS ?= -O2 ++CFLAGS += -Wall ++ + # tools to build the static library + ARFLAGS = cru +-AR = ar +-RANLIB = ranlib +- +-# concatinate the compile flags +-CFLAGS = $(C_FLAG) $(C_DEFS) ++AR ?= ar ++RANLIB ?= ranlib + +- +- +-# ------------------------------------------------------------------------ +-# AUTOMATISCHE COMPILE-ANWEISUNGEN +-# ------------------------------------------------------------------------ +- +-.c.o: +- gcc $(CFLAGS) $< ++# some distros have a messed up path when in su - ++LDCONFIG ?= /sbin/ldconfig + + + # -------------------------------------------------------------------------- + # ANHÄNGIGKEITEN + # -------------------------------------------------------------------------- + ++%.lo: %.c ++ $(CC) -fPIC $(CFLAGS) $(CPPFLAGS) -c $< -o $@ ++ + all: shared static test-v24 + + shared: $(NAME) +@@ -88,13 +83,13 @@ + static: $(LIBNAME) + + ++$(NAME): $(SHARED_OBJS) ++ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(LDFLAGS) + +-$(NAME): $(OBJS) +- gcc -shared -W1,soname,$(SONAME) -o $(NAME) $(OBJS) ++$(LIBNAME): $(STATIC_OBJS) ++ $(AR) $(ARFLAGS) $@ $^ ++ $(RANLIB) $@ + +-$(LIBNAME): $(OBJS) +- $(AR) $(ARFLAGS) $(LIBNAME) $(OBJS) +- $(RANLIB) $(LIBNAME) + + + # Abhängigkeiten des Source, jedoch dann ohne Generierungsanweisung, wenn +@@ -111,22 +106,27 @@ + # + + install: +- install -d -m 755 $(PREFIX)/include/$(SOBASE)/; +- install -m 644 ezV24.h $(PREFIX)/include/$(SOBASE)/ +- install -m 644 -s $(LIBNAME) $(PREFIX)/lib/$(LIBNAME) +- install -m 755 -s $(NAME) $(PREFIX)/lib/$(NAME) +- rm -f $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(PLAINNAME) +- ln -s $(PREFIX)/lib/$(NAME) $(PREFIX)/lib/$(SONAME);\ +- ln -s $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(PLAINNAME);\ +- ldconfig ++ install -d -m 755 $(DESTDIR)$(PREFIX)/include/$(SOBASE) ++ install -d -m 755 $(DESTDIR)$(LIBDIR) ++ install -m 644 ezV24.h $(DESTDIR)$(PREFIX)/include/$(SOBASE)/ ++ install -m 644 $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) ++ install -m 755 $(NAME) $(DESTDIR)$(LIBDIR)/$(NAME) ++ rm -f $(DESTDIR)$(PREFIX)/lib/$(SONAME) $(DESTDIR)$(LIBDIR)/$(PLAINNAME) ++ ln -s $(NAME) $(DESTDIR)$(LIBDIR)/$(SONAME) ++ ln -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(PLAINNAME) ++ if [ -z $$NO_LDCONFIG ]; then \ ++ $(LDCONFIG); \ ++ fi + + uninstall: + rm -f $(PREFIX)/include/ezV24/* + rmdir $(PREFIX)/include/ezV24 +- rm -f $(PREFIX)/lib/$(LIBNAME) +- rm -f $(PREFIX)/lib/$(NAME) +- rm -f $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(PLAINNAME) +- ldconfig ++ rm -f $(LIBDIR)/$(LIBNAME) ++ rm -f $(LIBDIR)/$(NAME) ++ rm -f $(LIBDIR)/$(SONAME) $(LIBDIR/$(PLAINNAME) ++ if [ -z $$NO_LDCONFIG ]; then \ ++ $(LDCONFIG); \ ++ fi + + + # This entry is for packing a distribution tarball +@@ -157,7 +157,7 @@ + # gcc -o test-v24 -Wall test-v24.c -l$(SOBASE) + # + test-v24: test-v24.c ezV24.h $(LIBNAME) +- gcc -o test-v24 -Wall test-v24.c -L./ $(LIBNAME) ++ $(CC) -o test-v24 -Wall -DUNINSTALLED test-v24.c -L./ $(LIBNAME) + + + # -------------------------------------------------------------------------- +@@ -165,7 +165,7 @@ + # -------------------------------------------------------------------------- + + clean: +- rm -f *.o core ++ rm -f *.o *.lo core + + clean-all: + rm -f *.o core test-v24 $(NAME) $(LIBNAME) diff --git a/dev-libs/libezV24/files/libezV24-0.1.1-test.patch b/dev-libs/libezV24/files/libezV24-0.1.1-test.patch new file mode 100644 index 000000000000..f3c2b676546f --- /dev/null +++ b/dev-libs/libezV24/files/libezV24-0.1.1-test.patch @@ -0,0 +1,20 @@ +Index: test-v24.c +=================================================================== +RCS file: /cvsroot/ezv24/libezv24/test-v24.c,v +retrieving revision 1.2 +retrieving revision 1.3 +diff -u -p -r1.2 -r1.3 +--- test-v24.c 11 Feb 2003 13:29:43 -0000 1.2 ++++ test-v24.c 13 Oct 2003 07:50:26 -0000 1.3 +@@ -30,7 +33,11 @@ + #include <string.h> + #include <signal.h> + ++#ifdef UNINSTALLED ++#include "ezV24.h" ++#else + #include <ezV24/ezV24.h> ++#endif + + #define __TEST_V24_C__ + diff --git a/dev-libs/libezV24/libezV24-0.1.1.ebuild b/dev-libs/libezV24/libezV24-0.1.1.ebuild new file mode 100644 index 000000000000..db6b724d1f4c --- /dev/null +++ b/dev-libs/libezV24/libezV24-0.1.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="library that provides an easy API to Linux serial ports" +HOMEPAGE="http://ezv24.sourceforge.net" +SRC_URI="mirror://sourceforge/ezv24/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc sparc x86" +IUSE="" + +RDEPEND="" +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch + epatch "${FILESDIR}"/${P}-test.patch + sed -i -e 's:__LINUX__:__linux__:' *.c *.h +} + +src_compile() { + tc-export AR CC RANLIB + emake || die "emake failed." +} + +src_install() { + export NO_LDCONFIG="stupid" + emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" \ + install || die "emake install failed." + dodoc AUTHORS BUGS ChangeLog HISTORY README + dohtml api-html/* +} diff --git a/dev-libs/libezV24/metadata.xml b/dev-libs/libezV24/metadata.xml new file mode 100644 index 000000000000..a0bdd485d35d --- /dev/null +++ b/dev-libs/libezV24/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> + The goal of this library is to provide an easy to use programming interface to + the serial ports of the Linux system. This release comes with some support for + the CYGWIN toolchain. Due to the great work of the cygwin folks, only minimal + changes are needed. I know that the cygwin-stuff of 'ezV24' isn't the final + stuff, but it's a first step and it works. + </longdescription> + <upstream> + <remote-id type="sourceforge">ezv24</remote-id> + </upstream> +</pkgmetadata> |