diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/shhopt |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/shhopt')
-rw-r--r-- | dev-libs/shhopt/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/shhopt/files/shhopt-1.1.7-build.patch | 83 | ||||
-rw-r--r-- | dev-libs/shhopt/metadata.xml | 9 | ||||
-rw-r--r-- | dev-libs/shhopt/shhopt-1.1.7-r2.ebuild | 36 |
4 files changed, 134 insertions, 0 deletions
diff --git a/dev-libs/shhopt/Manifest b/dev-libs/shhopt/Manifest new file mode 100644 index 000000000000..49f345e43118 --- /dev/null +++ b/dev-libs/shhopt/Manifest @@ -0,0 +1,6 @@ +AUX shhopt-1.1.7-build.patch 1880 SHA256 0d16fbb3816e422b576dd100eb40c4b5d8f8d4898f0e64939430ae2486aa98d8 SHA512 980b6796678213fd1538da374eba084a67c8a48e446083b86f280c00f355b0a45bc679431991156fd99b983a1d20b07f612389a129e1789a905b8e9967a42a37 WHIRLPOOL ab8681e3731fed32acca6bf1d9baf4c105587b42f5b3e8db7fc906257a2853983ce14e2e72c44ab99d57911f46cbd83abe8e71aa6b7b833b6a12b1ccb2911134 +DIST shhopt-1.1.7.tar.gz 9923 SHA256 bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679 SHA512 bd985d50e87808b5c6993496ba3e7c255d47895d90e108f03fd72bb273e786730898048af3b30ca29cb5dbd058f2ea178ca73b6362211c50aa0eb75f743b5ec8 WHIRLPOOL c779f51a8055cc90e403b08161c2da237b3cf2bf87ffd54747bde45014421f0d12f99436041225be4b72183c0a483971f10d26cb6e4bd811690dc09b92805356 +EBUILD shhopt-1.1.7-r2.ebuild 747 SHA256 a1f47d97e40c7a787b7065c4fe9c29d0ef80d66a7e959ae5a99db01c425af717 SHA512 3124d4c3d1a998cf79092cb750735196d05d45e28522d984ba7b9863e0afc0b0a9a8e22d59e5670cace44db7a658934f70dc9e851ab954f7c00bc3b1f2188746 WHIRLPOOL e67e045a1f8ba11e617ffcef49c82adcefc304cc198580c44787fcf12a9c5b9c08f39f5b80a529e6277a2e46a38f31a499f05ff85afa78be9dbf975cd11ffd7a +MISC ChangeLog 2558 SHA256 286766befd83e8687ed7852758b3b7f3c143b6a2e2c5ab245ef03adecd13732f SHA512 30b2c71d590705692b5f25359a4eeb16e7181f4c2e2f9910b708040721d8e993f80311cc19ba375983bb472b04fe5ba50de2cb5a0425ff9166cc1ee9a47f9baf WHIRLPOOL b3817710938d2aa66e60d41e320c8a74641aad410b7f50eec964c25d287a093a955e5a7961d3edf5e3669dfa92ee3dbca6b719fd69898a36b18d55eeb11cff91 +MISC ChangeLog-2015 1964 SHA256 b30f4c5d706d202a82986c069c6acb8b1cea4ee185827dfa0324e12c1251392f SHA512 961d87ce1f8982e159f6ed21233cada7a28efee085a7a9a67e11e4445985241b642d51179811e484021769f3eaeff1d72eb0104d5e89efa0348e612754c4ab2b WHIRLPOOL 3e8dd01bb35006b1b2ad7299a151d71017bf566173f6c89680ecd2a59157e6029935ab77fd5b14ec7528ec36860c095ea377b496052fe48921128be3131bb2f1 +MISC metadata.xml 341 SHA256 5478d4a9f9d27466ede4926b4d86a86d38521de03993e4f91a07eb7773f4ed7b SHA512 276ee6e17baeb1981c1c912b4f281d7eb71b171492d00d5ce522c3d6defbba4eef3dd87b43d4ec02eda21cfe148f2b0dcbe04d7dbd9a42918168844b563427f4 WHIRLPOOL c96ca7358e9faff6461547585a5351f7ee64c7f1d5e17236c67f294c02fbd7f401a85bf268e76b10dff8fbac389cb823bad4930d4b87588a2b053c9b37f706a5 diff --git a/dev-libs/shhopt/files/shhopt-1.1.7-build.patch b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch new file mode 100644 index 000000000000..d1d5606faab6 --- /dev/null +++ b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch @@ -0,0 +1,83 @@ +--- Makefile ++++ Makefile +@@ -5,20 +5,15 @@ + VERPAT = 7 + VERSION = $(VERMAJ).$(VERMIN).$(VERPAT) + +-# Define SHARED as 1 for Linux shared ELF library +-#SHARED = 1 +- +-ifeq ($(SHARED),1) + LIBTARGET = lib$(DIST).so.$(VERSION) + LIBTARGETSO = lib$(DIST).so + LIBTARGETSOMAJ = $(LIBTARGETSO).$(VERMAJ) + CCSHRD = -fPIC +-else +-LIBTARGET = lib$(DIST).a +-endif ++ ++LIBTARGETA = lib$(DIST).a + + LIBHEAD = $(DIST).h +-TARGETS = $(LIBTARGET) ++TARGETS = $(LIBTARGET) $(LIBTARGETA) + + INSTBASEDIR = /usr/local + INSTLIBDIR = $(INSTBASEDIR)/lib +@@ -27,12 +22,12 @@ + INSTALLPROG = install -m 755 + MKDIRP = install -d -m 755 + +-CC = gcc +-OPTIM = -O2 +- +-INCDIR = -I. +- +-CCOPT = -s -Wall $(OPTIM) $(INCDIR) ++CC ?= gcc ++AR ?= ar ++ARFLAGS ?= rc ++RANLIB ?= ranlib ++CPPFLAGS += -I. ++CFLAGS += -Wall + + # Object files to store in the library + LIBOBJS = shhopt.o +@@ -43,21 +38,19 @@ + # don't worry if you get ranlib not found errors. This probably means + # that your ar does an implicit ranlib and you do not need to run ranlib + # separately. This error is harmless. +-$(LIBTARGET): $(LIBOBJS) +-ifeq ($(SHARED),1) +- $(CC) -shared -Wl,-soname,$(LIBTARGETSOMAJ) -o $(LIBTARGET) $(LIBOBJS) +-else +- ar rc $(LIBTARGET) $(LIBOBJS) +- ranlib $(LIBTARGET) || true +-endif ++$(LIBTARGET): $(LIBOBJS:.o=.lo) ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIBTARGETSOMAJ) -o $@ $^ ++$(LIBTARGETA): $(LIBOBJS) ++ $(AR) $(ARFLAGS) $@ $^ ++ $(RANLIB) $@ + + # Note that you may need GNU's -liberty if your libc lacks strtoul + example: $(LIBTARGET) example.o + $(CC) -o example example.c \ + -L. -I. -L$(INSTLIBDIR) -I$(INSTINCDIR) -lshhopt + +-.c.o: +- $(CC) $(CCSHRD) -o $@ -c $(CCOPT) $< ++%.lo: %.c ++ $(COMPILE.c) $(CCSHRD) $^ -o $@ + + depend dep: + $(CC) $(INCDIR) -MM *.c >depend +@@ -73,7 +66,7 @@ + endif + + clean: +- rm -f *.o core *~ depend ++ rm -f *.o *.lo *.so* *.a core *~ depend + + chmod: + chmod a+r * diff --git a/dev-libs/shhopt/metadata.xml b/dev-libs/shhopt/metadata.xml new file mode 100644 index 000000000000..a5c1e1643e18 --- /dev/null +++ b/dev-libs/shhopt/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + C-functions for parsing command line options, both traditional + one-character options, and GNU'ish --long-options. + </longdescription> +</pkgmetadata> diff --git a/dev-libs/shhopt/shhopt-1.1.7-r2.ebuild b/dev-libs/shhopt/shhopt-1.1.7-r2.ebuild new file mode 100644 index 000000000000..8a94cb52fc5f --- /dev/null +++ b/dev-libs/shhopt/shhopt-1.1.7-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="library for parsing command line options" +HOMEPAGE="http://shh.thathost.com/pub-unix/" +SRC_URI="http://shh.thathost.com/pub-unix/files/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + emake CC=$(tc-getCC) || die +} + +src_install() { + dolib.a libshhopt.a || die + ln -s libshhopt.so.${PV} libshhopt.so + ln -s libshhopt.so.${PV} libshhopt.so.${PV:0:1} + dolib.so libshhopt.so* || die + insinto /usr/include + doins shhopt.h + dodoc ChangeLog CREDITS INSTALL README TODO +} |