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 /app-text/lv |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/lv')
-rw-r--r-- | app-text/lv/Manifest | 10 | ||||
-rw-r--r-- | app-text/lv/files/lv-4.51-gentoo.patch | 40 | ||||
-rw-r--r-- | app-text/lv/files/lv-4.51-protos.patch | 29 | ||||
-rw-r--r-- | app-text/lv/files/lv-4.51-tinfo.patch | 22 | ||||
-rw-r--r-- | app-text/lv/files/lv-4.51-xz.diff | 43 | ||||
-rw-r--r-- | app-text/lv/lv-4.51-r3.ebuild | 46 | ||||
-rw-r--r-- | app-text/lv/lv-4.51-r4.ebuild | 49 | ||||
-rw-r--r-- | app-text/lv/metadata.xml | 12 |
8 files changed, 251 insertions, 0 deletions
diff --git a/app-text/lv/Manifest b/app-text/lv/Manifest new file mode 100644 index 000000000000..6486d1214665 --- /dev/null +++ b/app-text/lv/Manifest @@ -0,0 +1,10 @@ +AUX lv-4.51-gentoo.patch 1385 SHA256 84df1e1816664648d4dbbfb489ed3e4a815a58f6f8e2b205c8d823e5becb5fa8 SHA512 b8af37ef32cb61a8d4903faeff2ff7f9e3cf4e4f0f3bb167503792bd0a3ee870c1c1dcd0d483c902e49c280e7d0783d4f34323bffa3aa9fa6a603d80c391d647 WHIRLPOOL 7ee5b40f2b1384372b1e0d2b57b4eeda395e9ac4050fb6049607da003f17251805e460c4374896be759883fa32f4fbed0fdd38caabd3b7b66e8489a21a40eada +AUX lv-4.51-protos.patch 874 SHA256 3ddb5f109e6248a20b2e4827535f6a67d84c7c14206153c86635813849378085 SHA512 785c95aee52503d573269ad8a6d8d879462cd754ab2b1ed79e02a43dd2b8ae8e472ed3fdd8985ef8baa9a6aba564be3960f9f021f2a1d113b6e781482699ce95 WHIRLPOOL 595f4367665a8cf9d88825caf170fc4e34570239a22f5307923119d59d715b6902d45a30ba2451634f3cb1328396f1aaf3b3dffb3274d449a9a08d6b826a3a2a +AUX lv-4.51-tinfo.patch 708 SHA256 9c40ae773f096fea92b5af41796d89f98571a46baa80de83bd5654e140268939 SHA512 3b49387dfeceef6cef6676c0fffb2e733f995daa5f56714fb4c15c47b7ec8a48f746c065fd3b11286dd578ef6c93630940e17342b8d858267907705e427dd962 WHIRLPOOL 1ecc84b6a9e7aa953e4391ccdfc9c4e9ed705aa2e46d91e60ff9503dc1498a191e800796b656770a4d093c6cac66f84344b7f685bbf1e9e5a61de81b6c4ba408 +AUX lv-4.51-xz.diff 1445 SHA256 f895df2b9f801eefb8d19503c1f2ff668f434ee8d14cd4257f3a78feab638ab1 SHA512 fb48d11cca4ca89d1ccecd267ed3a9502ae6541fa1c9564852742979e0dcbb4ca6e083ae90b65987366d3a3f6d43d4411af6ed1bcaa181908ada8ee3b4354f72 WHIRLPOOL 8138f8831a955a6de2955ec9a76e143c9464cd6b7d6128c046a4feb09f7043520a5a8f6b820b95c9eff1ca3878a281e5eaad889045c65aee0f1c341ecaee848a +DIST lv451.tar.gz 605082 SHA256 e1cd2e27109fbdbc6d435f2c3a99c8a6ef2898941f5d2f7bacf0c1ad70158bcf SHA512 88c05cb06ddc56e7f16f30b38218ec3bf9c8ef6c3c2b08d5a3f950b6870b82417368ada3f14f183b0feb6ed32d144d71901ad8134e5f88ddec11fc7b9520e810 WHIRLPOOL 9dabb78926c0e7dd7f4ea1181a2e3e9bfb1f2819d4b71c1fbee05779612e77fc4e795d150aba3891f2f4b57ca0f2697353813e30b654640a0ed58c4e51cb4b8f +EBUILD lv-4.51-r3.ebuild 1009 SHA256 50eacd6b52c8687df583d51da3d82a810acc8b47a02a841a9fbcadbc6370ac0e SHA512 f38131dedfe7d7a8055e26d809e4acebd1f63966f7c9c186cba579afc1bc99139686e37e9ec4536fd56828d2fd5d6562dfe77f179917896c7ec084441bfa980b WHIRLPOOL 0cf2e5f1def909ecb276887746380334577c5a26b6bf827a0bf58c310a093e43fb44fa36b4a6ab890cd4af892731a85bee51a2114f9517ed710e669282502f05 +EBUILD lv-4.51-r4.ebuild 963 SHA256 6d592a428cda8c6f98992422bdcc539d09df7694be44a2b9b5cb5b89ddeca995 SHA512 c43686140618d519d89e9dc5036b45ecae9c361e03150892f2333cc572352b73f9fb460ace04f6f313354a3a1861efc435e59a90886551b34fef87cd63910416 WHIRLPOOL ba975f44ae17b0a1b9abe35c2728ee9cccda83861117f5ecf39a0c26b13dac68e2839125421883c2d12b9307a1bdb3d0b5a793819c6a994a5ab29132c5b32b24 +MISC ChangeLog 2499 SHA256 31bfc4dadcb46fd3692bd259367758f222889a99fd1b23b0547701978f73c342 SHA512 096ee9bea2202b9baa83fdfa29a9f2b8afb127e1a437edcf6989891222975f391c4a104b5cb9d477d007d4c695b41ed8e21881b2f5505251fe72899e8e54d7db WHIRLPOOL 997e635410441ef249ea269b906ebc6ff208d2f55a3143e00e36de296e1673375d6bc629810b169210bb9587b677bc7e47de21d68c42702421141be70bc6004d +MISC ChangeLog-2015 5255 SHA256 881f94b40a73aa7e6172e66a4aa5b82d12ce3872d627a0cd08c75721957bb816 SHA512 09c1c3f03f5f2ee60dec787e15de6dc50ef6204a3c6c2f2338ae2699d075cf7333f4ecb581af9a951c2d46b3eea99182fa16309114c5021e8437741a322ceee6 WHIRLPOOL 789f07c9b1a6662106aeb46820b6e8d34b1c54fcda8636d1a53fabe2e7abce8147145368da4815e2c5943e98fd8260a9a1bee760608bedab73bdb1f2a6736d19 +MISC metadata.xml 358 SHA256 43661988a455151391103a9ea776235c8a0d4c0ef81870cc95f31863b8e64148 SHA512 7b250d5ddc092d7ecd4e6f48175e1f57f1671af4f8529368f368071b777fd773e363e83bcd3cfee3c9352ee93c9c0bc205f940c4cb6601dac3164ad34766e6a1 WHIRLPOOL 727008f8359e00e2d60dc8e5298c39b752e3d5babc05e547444c9e1b5ba5562fec9935f0db85d3017a400333ec03cc9adcc296c3ceb537621c7c039805105502 diff --git a/app-text/lv/files/lv-4.51-gentoo.patch b/app-text/lv/files/lv-4.51-gentoo.patch new file mode 100644 index 000000000000..90acab49fd16 --- /dev/null +++ b/app-text/lv/files/lv-4.51-gentoo.patch @@ -0,0 +1,40 @@ +diff -Naur lv451.orig/src/Makefile.in lv451/src/Makefile.in +--- lv451.orig/src/Makefile.in 2004-01-06 16:22:17.000000000 +0900 ++++ lv451/src/Makefile.in 2008-10-08 00:20:13.000000000 +0900 +@@ -25,6 +25,7 @@ + LDFLAGS=@LDFLAGS@ + INSTALL=@INSTALL@ + PERL= @PERL@ ++DESTDIR= + + OBJS= itable.o ctable.o uty.o istr.o stream.o file.o guess.o decode.o \ + encode.o escape.o iso2022.o iso8859.o iso2cn.o iso2jp.o iso2kr.o \ +@@ -64,18 +65,19 @@ + # + + install:: +- $(INSTALL) -s -m 555 lv $(bindir) +- if test -f $(bindir)/lgrep; then \ +- /bin/rm -f $(bindir)/lgrep; \ ++ if test ! -d $(DESTDIR)$(bindir); then \ ++ mkdir -p $(DESTDIR)$(bindir); \ + fi +- (cd $(bindir); ln lv lgrep) +- if test ! -d $(lvlibdir); then \ +- mkdir -p $(lvlibdir); \ ++ $(INSTALL) -m 555 lv $(DESTDIR)$(bindir) ++ (cd $(DESTDIR)$(bindir); ln -s lv lgrep) ++ if test ! -d $(DESTDIR)$(lvlibdir); then \ ++ mkdir -p $(DESTDIR)$(lvlibdir); \ + fi +- $(INSTALL) -m 444 $(srcdir)/../lv.hlp $(lvlibdir) +- if test -d $(mandir) -a -d $(mandir)/man1; then \ +- $(INSTALL) -m 444 $(srcdir)/../lv.1 $(mandir)/man1; \ ++ $(INSTALL) -m 444 $(srcdir)/../lv.hlp $(DESTDIR)$(lvlibdir) ++ if test ! -d $(DESTDIR)$(mandir)/man1; then \ ++ mkdir -p $(DESTDIR)$(mandir)/man1; \ + fi ++ $(INSTALL) -m 444 $(srcdir)/../lv.1 $(DESTDIR)$(mandir)/man1; \ + + uninstall:: + for i in $(bindir)/lv $(bindir)/lgrep $(lvlibdir)/lv.hlp $(mandir)/man1/lv.1; do \ diff --git a/app-text/lv/files/lv-4.51-protos.patch b/app-text/lv/files/lv-4.51-protos.patch new file mode 100644 index 000000000000..602ef5f6117f --- /dev/null +++ b/app-text/lv/files/lv-4.51-protos.patch @@ -0,0 +1,29 @@ +Add missing string protos. + + * src/guess.c:150:12: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration] + * src/guess.c:218:22: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] + * src/guesslocale.c:42:9: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration] +diff --git a/src/guess.c b/src/guess.c +index facd95e..555acd3 100644 +--- a/src/guess.c ++++ b/src/guess.c +@@ -21,6 +21,7 @@ + */ + + #include <stdio.h> ++#include <string.h> /* strcmp */ + + #include <import.h> + #include <decode.h> +diff --git a/src/guesslocale.c b/src/guesslocale.c +index 7974c88..c259723 100644 +--- a/src/guesslocale.c ++++ b/src/guesslocale.c +@@ -29,6 +29,7 @@ + #include <langinfo.h> + #endif + ++#include <ctype.h> /* toupper */ + #include <import.h> + #include <ctable.h> + #include <begin.h> diff --git a/app-text/lv/files/lv-4.51-tinfo.patch b/app-text/lv/files/lv-4.51-tinfo.patch new file mode 100644 index 000000000000..9c17a92a65ef --- /dev/null +++ b/app-text/lv/files/lv-4.51-tinfo.patch @@ -0,0 +1,22 @@ +diff --git a/src/configure.in b/src/configure.in +index 7d118de..29833a7 100644 +--- a/src/configure.in ++++ b/src/configure.in +@@ -24,7 +24,16 @@ AC_ARG_ENABLE(purify, + dnl Checks for libraries. + AC_DEFINE(UNIX) + AC_DEFINE(TERMCAP) +-AC_CHECK_LIB(terminfo, tgetstr,, [AC_CHECK_LIB(termcap, tgetstr,, [AC_CHECK_LIB(ncurses, tgetstr,, [AC_CHECK_LIB(curses, tgetstr)])])]) ++PKG_CHECK_MODULES( ++ CURSES, ++ ncurses, ++ [ ++ CPPFLAGS="$CURSES_CFLAGS $CPPFLAGS" ++ LIBS="$CURSES_LIBS $LIBS" ++ ], ++ [ ++ AC_CHECK_LIB(terminfo, tgetstr,, [AC_CHECK_LIB(termcap, tgetstr,, [AC_CHECK_LIB(ncurses, tgetstr,, [AC_CHECK_LIB(curses, tgetstr)])])]) ++ ]) + + dnl Checks for header files. + AC_HEADER_STDC diff --git a/app-text/lv/files/lv-4.51-xz.diff b/app-text/lv/files/lv-4.51-xz.diff new file mode 100644 index 000000000000..058029b8be28 --- /dev/null +++ b/app-text/lv/files/lv-4.51-xz.diff @@ -0,0 +1,43 @@ +--- lv451.orig/index.html ++++ lv451/index.html +@@ -301,8 +301,11 @@ + <P> + Compressed files that have suffix ``gz'', ``z'', or ``GZ'', ``Z'' are + extracted by lv using <I>zcat</I> (1), +- and ``bz2'' or ``BZ2'' with <I>bzcat</I> (1). +- Please install <I>zcat</I> and <I>bzcat</I> that can expand all of them. ++ ``bz2'' or ``BZ2'' with <I>bzcat</I> (1). ++ ``lzma'' or ``LZMA'' with <I>lzcat</I> (1). ++ and ``xz'' or ``XZ'' with <I>xzcat</I> (1). ++ Please install <I>zcat</I>, <I>bzcat</I>, <I>lzcat</I> and <I>xzcat</I> ++ that can expand all of them. + <P> + In case that standard output is not connected to an ordinal terminal + but to redirect or pipe-line, +--- lv451.orig/src/stream.c ++++ lv451/src/stream.c +@@ -43,6 +43,8 @@ + + private byte *gz_filter = "zcat"; + private byte *bz2_filter = "bzcat"; ++private byte *lzma_filter = "lzcat"; ++private byte *xz_filter = "xzcat"; + + private stream_t *StreamAlloc() + { +@@ -75,10 +77,14 @@ + filter = gz_filter; + else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) ) + filter = bz2_filter; ++ else if( !strcmp( "lzma", exts ) || !strcmp( "LZMA", exts ) ) ++ filter = lzma_filter; ++ else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) ) ++ filter = xz_filter; + } + if( NULL != filter ){ + /* +- * zcat or bzcat ++ * zcat or bzcat or lzcat or xzcat + */ + if( NULL == (st->fp = (FILE *)tmpfile()) ) + perror( "temporary file" ), exit( -1 ); diff --git a/app-text/lv/lv-4.51-r3.ebuild b/app-text/lv/lv-4.51-r3.ebuild new file mode 100644 index 000000000000..b7a63bf3f3aa --- /dev/null +++ b/app-text/lv/lv-4.51-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit autotools eutils toolchain-funcs + +MY_P="${PN}${PV//./}" + +DESCRIPTION="Powerful Multilingual File Viewer" +HOMEPAGE="http://www.ff.iij4u.or.jp/~nrt/lv/" +SRC_URI="http://www.ff.iij4u.or.jp/~nrt/freeware/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +RDEPEND="sys-libs/ncurses + !app-editors/levee" +DEPEND="${RDEPEND} + dev-lang/perl" +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-xz.diff + epatch "${FILESDIR}"/${P}-tinfo.patch + epatch "${FILESDIR}"/${P}-protos.patch + cd "${S}"/src + eautoreconf +} + +src_configure() { + ECONF_SOURCE=src econf +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README hello.sample + dohtml index.html relnote.html hello.sample.gif +} diff --git a/app-text/lv/lv-4.51-r4.ebuild b/app-text/lv/lv-4.51-r4.ebuild new file mode 100644 index 000000000000..a1b366d3665c --- /dev/null +++ b/app-text/lv/lv-4.51-r4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils toolchain-funcs + +MY_P="${PN}${PV//./}" + +DESCRIPTION="Powerful Multilingual File Viewer" +HOMEPAGE="http://www.ff.iij4u.or.jp/~nrt/lv/" +SRC_URI="http://www.ff.iij4u.or.jp/~nrt/freeware/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +RDEPEND="sys-libs/ncurses:0= + !app-editors/levee" +DEPEND="${RDEPEND} + dev-lang/perl" + +S="${WORKDIR}/${MY_P}" + +DOCS=(README hello.sample) +HTML_DOCS=(index.html relnote.html hello.sample.gif) + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-xz.diff + "${FILESDIR}"/${P}-tinfo.patch + "${FILESDIR}"/${P}-protos.patch +) + +src_prepare() { + default + + cd src + eautoreconf +} + +src_configure() { + ECONF_SOURCE=src econf +} + +src_compile() { + emake CC="$(tc-getCC)" +} diff --git a/app-text/lv/metadata.xml b/app-text/lv/metadata.xml new file mode 100644 index 000000000000..44629a6d665c --- /dev/null +++ b/app-text/lv/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + </maintainer> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> +</pkgmetadata> |