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 /sys-apps/most |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/most')
-rw-r--r-- | sys-apps/most/Manifest | 7 | ||||
-rw-r--r-- | sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch | 33 | ||||
-rw-r--r-- | sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch | 216 | ||||
-rw-r--r-- | sys-apps/most/metadata.xml | 8 | ||||
-rw-r--r-- | sys-apps/most/most-5.0.0a-r1.ebuild | 35 |
5 files changed, 299 insertions, 0 deletions
diff --git a/sys-apps/most/Manifest b/sys-apps/most/Manifest new file mode 100644 index 000000000000..61891329865a --- /dev/null +++ b/sys-apps/most/Manifest @@ -0,0 +1,7 @@ +AUX most-5.0.0a-donot-hardcode-path.patch 969 SHA256 6d08644fe57f3a02bffe6ae935392f9d2323b4c0767a1cd49969dac53506f986 SHA512 6da3424b5e9763bd8f89998ffe019230cc8e9c7fc9722235cc13830d50647f590f6a934ae025a063fe8fc1e8bdd2b4fc067fbc1569c7a0ebfa220b868b999271 WHIRLPOOL 9b21c2b20910127db97c965ae362ffd5d8d4d34c2c80559b01f7fc59b7c65b9b053d55d2db4764150ff1624be33249f5cbf501f92e777e95630db24f7d18029d +AUX most-5.0.0a-no-explicit-termcap.patch 6172 SHA256 06b1c19bbe5102a7960e38cba6179925e3859a0457fdb987dd7fe2a5ed3555c9 SHA512 48a87d66bda3b1464a214614c5ea23a5ba5a820da0da497de4db9ca4205288d7f63f460b08713047a4a14e8911bbb0b6a92ff2521cbec1acdf4e37e86a2c1346 WHIRLPOOL 4a5477b45a91106c97466f8551d30e1d8be2ae999e1b45cbd7e9b0e6e3ed75ff28024309d3d442bb1db663586c96564fef182d55559a629099f8fc5440cc5d36 +DIST most-5.0.0a.tar.bz2 131130 SHA256 94cb5a2e71b6b9063116f4398a002a757e59cd1499f1019dde8874f408485aa9 SHA512 0c101777250a15ed9cbe0bfbaa17d0ac5ef973a7e0730d096bd931ba578dbcbd4f244305c99a50bc8fd8aa1937b621a97a6452b3821fee7d72f33a02da278e5d WHIRLPOOL 26beeeed2b46b06edb5dcfb8cf009070964e74e42e78a29068c343b5863764e4b8fa8e8457481523589f37f72171b3be4b603d071fba80ad756dd9c3cdbac374 +EBUILD most-5.0.0a-r1.ebuild 902 SHA256 9d864dacc5ec73fc62a305bf824bffd2e5b8ce1d158f530d51a8a5fe87c2d492 SHA512 49a4d97841dc9e43abada91cdc720117da3358e3fb85b672bf3064514d254f72d4f09ad326287dff5997fd3b0cefdce3c216c3882f2525b7a61715a3d6e971bc WHIRLPOOL 7f635ccaa8b7a3de0da67f8685c317e4e8da975402f23213fa884ae5aa46e356dfc31aa7207fe492048e58523bda03d9a2e03fceccd293da13f75ea506e7cf75 +MISC ChangeLog 2712 SHA256 3e016f66feb10be65f7f2622e28478300cf6455b1302f084d1e5b5d8a2098a74 SHA512 bd687df610608a89635c0b6acff597b8df5edd2940cf15d8318b8a3b5ffe1a5d561f416e9703c6e4aab1c8f0dfce0d0da128618abfcd711af46b4413ad7e8934 WHIRLPOOL 51bed04ae683808f8bddcd3ca2802e643e9d0c8a4cda0580307627ad9523dd11ad98488913701a34439d5dc976332a8c2f684fbe5daf601797bdf51f38fae5e0 +MISC ChangeLog-2015 7287 SHA256 d6dbb5c9811c3be552c38d002ef0b07fa641913bb7980ce6ecf508a7a83cc650 SHA512 7803040b6e1cf4f2f20fd8f22d6c988071eb53181add255639f0580f00f8c22daf2a8c1b0f2e8be95d49961d96a97115fc18c95a57cbb33f988ad2c6be656258 WHIRLPOOL 1e4c0fc22a636f2d637e8abd6b70c10c25af7aa333f99b4e7ab1b80516f595816df48b797b237cdc59c351226222a827ecef5d7a999662f0dce7f9f3d97bb472 +MISC metadata.xml 271 SHA256 fb77ec802242340d65f4f1cf61787ffa6fb4d57ed02f61feebeed67d2dfb5467 SHA512 3e98f5382cf789992bdfc0f32e6e36eba31944be654c03f2ed9bd00baf56c8b768c256c4f8778d5775d6df38da4afcf8e32b6e6495a1ecfc8e7982c7c8943b1b WHIRLPOOL d6212acd36a69fee56b014b2e1724369857e776204569ac774915e589fd2242b3cd961226d9f125eed452d6c420468e60f038c9b49d1d2a8827d13766918f872 diff --git a/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch new file mode 100644 index 000000000000..37e786c26b0c --- /dev/null +++ b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch @@ -0,0 +1,33 @@ +Author: Benda Xu <heroxbd@gentoo.org> +Date: 2014-12-08 +Forwarded: John E. Davis <jed@jedsoft.org> + +cp or rm does not necessarily reside in /bin. If it does, /bin is +in $PATH by convention. In either case, hardcoding /bin/cp or /bin/rm +is not a good idea. + +Index: most-5.0.0a/src/Makefile.in +=================================================================== +--- most-5.0.0a.orig/src/Makefile.in ++++ most-5.0.0a/src/Makefile.in +@@ -61,7 +61,7 @@ $(OBJDIR): + -mkdir $(OBJDIR) + # + $(CONFIG_H) : $(SRCDIR)/sysconf.h +- /bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H) ++ cp $(SRCDIR)/sysconf.h $(CONFIG_H) + # + slangversion: $(OBJDIR)/chkslang + $(OBJDIR)/chkslang $(EXEC) 20000 +@@ -75,9 +75,9 @@ $(SRCDIR)/version.h: $(SRCDIR)/../change + fi + # + clean: +- /bin/rm -f $(OBJDIR)/* *~ ++ rm -f $(OBJDIR)/* *~ + distclean: clean +- /bin/rm -rf $(OBJDIR) Makefile sysconf.h ++ rm -rf $(OBJDIR) Makefile sysconf.h + installdirs: + $(MKINSDIR) $(DEST_DOCDIR) + $(MKINSDIR) $(DEST_MANDIR)/man1 diff --git a/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch b/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch new file mode 100644 index 000000000000..f858f56f7bc1 --- /dev/null +++ b/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch @@ -0,0 +1,216 @@ +Author: Benda Xu <heroxbd@gentoo.org> +Date: 2014-12-08 +Forwarded: John E. Davis <jed@jedsoft.org> + +"most" completely replies on slang to access terminfo/termcap, by +SLtt_get_terminfo() and friends. + +Nothing should be considered by most but to find slang. Therefore it +should not link against libtermcap in any case. + + * configure.ac: remove JD_TERMCAP + * configure: regenerate with autoconf-2.61 + * src/Makefile.in: remove libtermcap linking + +Index: most-5.0.0a/autoconf/configure.ac +=================================================================== +--- most-5.0.0a.orig/autoconf/configure.ac ++++ most-5.0.0a/autoconf/configure.ac +@@ -62,7 +62,6 @@ getpgrp tcgetpgrp \ + ) + + JD_SET_OBJ_SRC_DIR +-JD_TERMCAP + JD_WITH_LIBRARY(slang) + JD_GCC_WARNINGS + JD_GET_MODULES(src/modules.lis) +Index: most-5.0.0a/configure +=================================================================== +--- most-5.0.0a.orig/configure ++++ most-5.0.0a/configure +@@ -700,8 +700,6 @@ X_EXTRA_LIBS + SRCDIR + OBJDIR + ELFDIR +-TERMCAP +-MISC_TERMINFO_DIRS + SLANG_LIB + SLANG_INC + PROGRAM_OFILES +@@ -9064,13 +9062,11 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-#include <sys/types.h> /* for off_t */ +- #include <stdio.h> ++#include <stdio.h> + int + main () + { +-int (*fp) (FILE *, off_t, int) = fseeko; +- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ++return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); + ; + return 0; + } +@@ -9110,13 +9106,11 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #define _LARGEFILE_SOURCE 1 +-#include <sys/types.h> /* for off_t */ +- #include <stdio.h> ++#include <stdio.h> + int + main () + { +-int (*fp) (FILE *, off_t, int) = fseeko; +- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ++return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); + ; + return 0; + } +@@ -9777,42 +9771,6 @@ OBJDIR=$SRCDIR/"$ARCH"objs + ELFDIR=$SRCDIR/elf"$ARCH"objs + + +-{ echo "$as_me:$LINENO: checking for Terminfo" >&5 +-echo $ECHO_N "checking for Terminfo... $ECHO_C" >&6; } +-MISC_TERMINFO_DIRS="$FINKPREFIX/share/terminfo" +-if test ! -d $MISC_TERMINFO_DIRS +-then +- MISC_TERMINFO_DIRS="" +-fi +- +-JD_Terminfo_Dirs="/usr/lib/terminfo \ +- /usr/share/terminfo \ +- /usr/share/lib/terminfo \ +- /usr/local/lib/terminfo \ +- $MISC_TERMINFO_DIRS" +- +-TERMCAP=-ltermcap +- +-for terminfo_dir in $JD_Terminfo_Dirs +-do +- if test -d $terminfo_dir +- then +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +- TERMCAP="" +- break +- fi +-done +-if test "$TERMCAP"; then +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +- cat >>confdefs.h <<\_ACEOF +-#define USE_TERMCAP 1 +-_ACEOF +- +-fi +- +- + if test "X$jd_prefix" = "X" + then + jd_prefix=$ac_default_prefix +@@ -10858,8 +10816,6 @@ X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim + SRCDIR!$SRCDIR$ac_delim + OBJDIR!$OBJDIR$ac_delim + ELFDIR!$ELFDIR$ac_delim +-TERMCAP!$TERMCAP$ac_delim +-MISC_TERMINFO_DIRS!$MISC_TERMINFO_DIRS$ac_delim + SLANG_LIB!$SLANG_LIB$ac_delim + SLANG_INC!$SLANG_INC$ac_delim + PROGRAM_OFILES!$PROGRAM_OFILES$ac_delim +@@ -10868,9 +10824,10 @@ PROGRAM_HFILES!$PROGRAM_HFILES$ac_delim + PROGRAM_OBJECTS!$PROGRAM_OBJECTS$ac_delim + PROGRAM_ELFOBJECTS!$PROGRAM_ELFOBJECTS$ac_delim + LIBOBJS!$LIBOBJS$ac_delim ++LTLIBOBJS!$LTLIBOBJS$ac_delim + _ACEOF + +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +@@ -10906,50 +10863,6 @@ CEOF$ac_eof + _ACEOF + + +-ac_delim='%!_!# ' +-for ac_last_try in false false false false false :; do +- cat >conf$$subs.sed <<_ACEOF +-LTLIBOBJS!$LTLIBOBJS$ac_delim +-_ACEOF +- +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then +- break +- elif $ac_last_try; then +- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} +- { (exit 1); exit 1; }; } +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +- +-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +-if test -n "$ac_eof"; then +- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` +- ac_eof=`expr $ac_eof + 1` +-fi +- +-cat >>$CONFIG_STATUS <<_ACEOF +-cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof +-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end +-_ACEOF +-sed ' +-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +-s/^/s,@/; s/!/@,|#_!!_#|/ +-:n +-t n +-s/'"$ac_delim"'$/,g/; t +-s/$/\\/; p +-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +-' >>$CONFIG_STATUS <conf$$subs.sed +-rm -f conf$$subs.sed +-cat >>$CONFIG_STATUS <<_ACEOF +-:end +-s/|#_!!_#|//g +-CEOF$ac_eof +-_ACEOF +- +- + # VPATH may cause trouble with some makes, so we remove $(srcdir), + # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and + # trailing colons and then remove the whole line if VPATH becomes empty +@@ -11193,7 +11106,7 @@ s&@abs_builddir@&$ac_abs_builddir&;t t + s&@abs_top_builddir@&$ac_abs_top_builddir&;t t + s&@INSTALL@&$ac_INSTALL&;t t + $ac_datarootdir_hack +-" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out ++" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out + + test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && +Index: most-5.0.0a/src/Makefile.in +=================================================================== +--- most-5.0.0a.orig/src/Makefile.in ++++ most-5.0.0a/src/Makefile.in +@@ -3,7 +3,6 @@ CFLAGS = @CFLAGS@ @SLANG_DLL_CFLAGS@ + LDFLAGS = @LDFLAGS@ + SLANG_INC = @SLANG_INC@ + SLANG_LIB = @SLANG_LIB@ -lslang +-MISCLIBS = @TERMCAP@ + RPATH = @RPATH@ + + #----------------------------------------------------------------------------- +@@ -44,7 +43,7 @@ EXEC = most + CONFIG_H = config.h + INCS = $(SLANG_INC) + ALL_CFLAGS = $(CFLAGS) -Dunix $(INCS) +-EXECLIBS = $(RPATH) $(SLANG_LIB) $(MISCLIBS) -lm ++EXECLIBS = $(RPATH) $(SLANG_LIB) -lm + # + most_O_DEP = $(SRCDIR)/version.h + UPDATE_VERSION_SCRIPT = $(HOME)/bin/update_changes_version diff --git a/sys-apps/most/metadata.xml b/sys-apps/most/metadata.xml new file mode 100644 index 000000000000..3e927f8d7480 --- /dev/null +++ b/sys-apps/most/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/most/most-5.0.0a-r1.ebuild b/sys-apps/most/most-5.0.0a-r1.ebuild new file mode 100644 index 000000000000..61881208048c --- /dev/null +++ b/sys-apps/most/most-5.0.0a-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="Paging program that displays, one windowful at a time, the contents of a file" +HOMEPAGE="ftp://space.mit.edu/pub/davis/most" +SRC_URI="ftp://space.mit.edu/pub/davis/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~mips ~ppc64 ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=">=sys-libs/slang-2.1.3" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.0.0a-no-explicit-termcap.patch + epatch "${FILESDIR}"/${PN}-5.0.0a-donot-hardcode-path.patch + sed -i -e 's:$(INSTALL) -s:$(INSTALL):' src/Makefile.in || die + export MAKEOPTS+=" -j1" +} + +src_configure() { + unset ARCH + econf +} + +src_install() { + emake DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" \ + install +} |