summaryrefslogtreecommitdiff
path: root/net-misc/urlview
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/urlview
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/urlview')
-rw-r--r--net-misc/urlview/Manifest9
-rw-r--r--net-misc/urlview/files/include-fix.patch11
-rw-r--r--net-misc/urlview/files/no-trailing-newline.patch11
-rw-r--r--net-misc/urlview/files/urlview-0.9-DESTDIR.patch23
-rw-r--r--net-misc/urlview/files/urlview-0.9-tinfo.patch21
-rw-r--r--net-misc/urlview/metadata.xml18
-rw-r--r--net-misc/urlview/urlview-0.9.ebuild47
7 files changed, 140 insertions, 0 deletions
diff --git a/net-misc/urlview/Manifest b/net-misc/urlview/Manifest
new file mode 100644
index 000000000000..5562d08e9d06
--- /dev/null
+++ b/net-misc/urlview/Manifest
@@ -0,0 +1,9 @@
+AUX include-fix.patch 165 SHA256 b6b8525bd8e08ae93ab325b92ec847fc3821e2335aa49ffd2411ba1ae2108cba SHA512 7105a53ffba98beb253bd2ebdb3096875df62561c028c250c8ff172793b54a81ea553223b375aefd4e97a0edf054921f8bab5e8c58d0357cd33c6782e06cf4a8 WHIRLPOOL e6351af7b28bd6fbc10b5cec20e1c5d23de291316139a5677d42652520d4209f6face3e49c9a0350ef6c7617a5c87eb03275316700058697a8098dac8ce765bb
+AUX no-trailing-newline.patch 459 SHA256 a222d3d8f047d798c529685f1ac93748b0bbc246d87a7f1cbee36f9713ff36b5 SHA512 e7591e9ba4d691cf642262603ec78bed053595cc7af5baf91d8258900eaf76046cd41da94d7fb3a65c12a34305f27e6c69d01ef1c2ba55e9abdce8f068a11c46 WHIRLPOOL 0a1f2804f9d547144fbaffacd2a5775578edc4afd27b57cdc6c3136acdb7734644f53f8deac236c2d117bcd643bdfece9a6ab3cb0338181af0ef198af84a1e35
+AUX urlview-0.9-DESTDIR.patch 630 SHA256 9f4c274803262e54ab993c5f7210bd30844edc25f58700bc0a93eb326295dfcf SHA512 9093b720325c3c982281121caece9ea3c59168abadcb7c82213095846378f966e0f9000fa4b4ced6f0eb50633a1fd2c7d13d7dc896a631f2309e8f00d0150c4d WHIRLPOOL 789457fab8038a8c0ff5c9f3a52afa82021f586c6d653122af7cac5f21dfd3733431ccd06a155ac3b0aa082d3acb17489cff53bc495df8b49db466bb7cf93e24
+AUX urlview-0.9-tinfo.patch 642 SHA256 1046bfb6af7ce44c31c9952dca9036a2811583861bdca356a38893f57f48c88d SHA512 600c63d4de91f5d149ff8b0ce9ae4196e9a8a8de0627dce177d9be949dc223cc18d38b3262411380b6ec82b16722c5c85d4e4abe35143993d2d0b5341ae6e71e WHIRLPOOL 357dda69b364e116f2ccf9ad89fce2003c57d8682396669234403a6ad578824e3bbfc0372cf5892c25cd1bc23ecf85f74a09032042b621d1158895e6ff451bab
+DIST urlview-0.9.tar.gz 46685 SHA256 74d18026e84e3cd70a3fdd1a7247a68031b0c1c1c6d761d64b7063ff71091cc3 SHA512 5415c30e34f429c78001b1e87a75a43503d1998b667eaac66dc49298ea491914c6360baba33b5caeeb4ad54e3a4533a46afc05de3b1f135e41069d00fad0936a WHIRLPOOL 1a6311a5ca0675dc937b0875ca4d4955644c7f875e79dfda2db593499fa5bf1ec006db6c118d6f086aae462dcb5f3f3ec114645f5d6d3dd4d42b33625b30a1af
+EBUILD urlview-0.9.ebuild 1052 SHA256 fefccd9e0a5defc10fc00319b114deba43b551805ae1f1c5552a0ed94699edae SHA512 85b370f805bd1d9bf238f185268bd6e198af7cf03c14ff652ffe6b3b63724335182035c31730667b1b5a04b4c1aa98bdf03df562cb858ce2b050c2e292c047fe WHIRLPOOL b4a388f0beb0d568b266c2b8c0e53322b87ea2cdac11519c8553fe2e68ff7aae7faaf9a89995af0bf51ede80c5afc6970909efc74cbef9b4a84a7cc8b6a34ec4
+MISC ChangeLog 2300 SHA256 fa1d61b8947a3221878918f88718021e98cf063585bd81e8852b5f002eef727d SHA512 c968de2296324a1502e5f8295ad074e0025a4c05bc6bab30e412577a7664da6658232fcd4d3d7dda5691d8d202f3d9fd880149472e8421dc48ce33a0b0e7a56f WHIRLPOOL 8ca27db859898e5802f12c73afb5b562af212a24bad383f059c9b4988d6c2f14d0461b5324c005e672e50bc3c9f0aa36340574d8c73c2c5636952bef162aea96
+MISC ChangeLog-2015 2983 SHA256 b382925a00f8b636641c007185e9f32d938095256418a447f5a2eb90e935e608 SHA512 7a799bdc982e284ef7c23243d32f5225d697b8f109ab0bf831b9bc49682ce6492d4bc878170529b7259fa8f1eaa0581512634c3d17d8b3471549ea19eeb97302 WHIRLPOOL 975c550aefde3d3cd3cf9786337e3eb788e85fc1c08658cbc7f883a5bc42b41ad83d83c8ecd33214231382d06984d7c5640458eceff3cd166cfb6441625406cc
+MISC metadata.xml 734 SHA256 145522355ad1825bed35c34bf2403123fe6a682b26ff708043b1f23a0ceb7071 SHA512 d3e459db10e0ca8b736c3850dd4adcdc9289ebed4b6cfea8f9feeb5bab1e4642d6d98e12c03dfd6483192f3827a9c129ae9ca47a87eb330560a81028d8f4ed07 WHIRLPOOL 9f1b4c0f1b2c317acac71e975eee2abc85f98dbafefe3c397287fd1c62700dc22b423e9142e9624a493a704d9fae3b0973c88b45864ae90e7e92c91abfd41229
diff --git a/net-misc/urlview/files/include-fix.patch b/net-misc/urlview/files/include-fix.patch
new file mode 100644
index 000000000000..b9bb6ab46992
--- /dev/null
+++ b/net-misc/urlview/files/include-fix.patch
@@ -0,0 +1,11 @@
+--- a/urlview.c
++++ b/urlview.c
+@@ -40,6 +40,8 @@
+ #include <fcntl.h>
+ #include <sys/stat.h>
+
++#include "quote.h"
++
+ #ifdef HAVE_REGEX_H
+ #include <regex.h>
+ #else
diff --git a/net-misc/urlview/files/no-trailing-newline.patch b/net-misc/urlview/files/no-trailing-newline.patch
new file mode 100644
index 000000000000..6d78cd4ed073
--- /dev/null
+++ b/net-misc/urlview/files/no-trailing-newline.patch
@@ -0,0 +1,11 @@
+--- a/urlview.c
++++ b/urlview.no-trailing-newline.c
+@@ -46,7 +46,7 @@
+ #include <rx/rxposix.h>
+ #endif
+
+-#define DEFAULT_REGEXP "(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>\"]+|(www|web|w3)\\.[-a-z0-9.]+)[^' \t.,;<>\"\\):]"
++#define DEFAULT_REGEXP "(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>\"]+|(www|web|w3)\\.[-a-z0-9.]+)[^' \n\t.,;<>\"\\):]"
+ #define DEFAULT_COMMAND "url_handler.sh %s"
+ #define SYSTEM_INITFILE "/etc/urlview.conf"
+
diff --git a/net-misc/urlview/files/urlview-0.9-DESTDIR.patch b/net-misc/urlview/files/urlview-0.9-DESTDIR.patch
new file mode 100644
index 000000000000..8c4cfe816b63
--- /dev/null
+++ b/net-misc/urlview/files/urlview-0.9-DESTDIR.patch
@@ -0,0 +1,23 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -11,6 +11,7 @@
+ CLEANFILES = *~ *.orig *.rej
+
+ install-data-local:
+- $(INSTALL_DATA) urlview.man $(mandir)/man1/urlview.1
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
++ $(INSTALL_DATA) urlview.man ${DESTDIR}$(mandir)/man1/urlview.1
+
+ # how to create a target for uninstall-data-local???
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -318,7 +318,8 @@
+
+
+ install-data-local:
+- $(INSTALL_DATA) urlview.man $(mandir)/man1/urlview.1
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
++ $(INSTALL_DATA) urlview.man $(DESTDIR)$(mandir)/man1/urlview.1
+
+ # how to create a target for uninstall-data-local???
+
diff --git a/net-misc/urlview/files/urlview-0.9-tinfo.patch b/net-misc/urlview/files/urlview-0.9-tinfo.patch
new file mode 100644
index 000000000000..e8f3886a4d0e
--- /dev/null
+++ b/net-misc/urlview/files/urlview-0.9-tinfo.patch
@@ -0,0 +1,21 @@
+--- a/configure.in
++++ b/configure.in
+@@ -3,6 +3,8 @@
+ dnl AM_CONFIG_HEADER(config.h)
+ AM_PROG_CC_STDC
+ CFLAGS="$CFLAGS -DURLVIEW -Dunix"
++
++PKG_CHECK_MODULES(ncurses,ncurses)
+ AC_ARG_WITH(slang, [ --with-slang[=DIR] use S-Lang instead of curses],
+ [AC_DEFINE(USE_SLANG)
+ if test $withval = yes -a -d ../slang; then
+@@ -22,8 +24,7 @@
+ fi
+ LIBS="$LIBS -lslang -lm"
+ fi],
+-
+- [AC_CHECK_LIB(ncurses, initscr, [LIBS="$LIBS -lncurses"], [LIBS="$LIBS -lcurses"])
++ [LIBS="$LIBS $ncurses_LIBS"
+ AC_CHECK_FUNCS(curs_set)
+ AC_CHECK_HEADERS(ncurses.h)
+ AC_CHECK_HEADER(ncurses/curses.h, [CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"])])
diff --git a/net-misc/urlview/metadata.xml b/net-misc/urlview/metadata.xml
new file mode 100644
index 000000000000..24ae812e9c0b
--- /dev/null
+++ b/net-misc/urlview/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+ </maintainer>
+ <longdescription lang="en">
+ urlview is a screen oriented program for extracting URLs from text
+ files and displaying a menu from which you may launch a command to view
+ a specific item.
+ </longdescription>
+ <longdescription lang="es">
+ urlview es un programa orientado a terminal para la extracción de URLs
+ desde ficheros de texto. El programa muestra un menú desde el que se
+ puede lanzar una orden para ver un elemento en particular.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-misc/urlview/urlview-0.9.ebuild b/net-misc/urlview/urlview-0.9.ebuild
new file mode 100644
index 000000000000..0303d4e33c6a
--- /dev/null
+++ b/net-misc/urlview/urlview-0.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="extracts urls from text and will send them to another app"
+HOMEPAGE="http://www.mutt.org"
+SRC_URI="ftp://gd.tuwien.ac.at/infosys/mail/mutt/contrib/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/no-trailing-newline.patch \
+ "${FILESDIR}"/include-fix.patch \
+ "${FILESDIR}"/${P}-DESTDIR.patch \
+ "${FILESDIR}"/${P}-tinfo.patch
+
+ eautoreconf
+}
+
+src_install() {
+ default
+ dodoc README INSTALL ChangeLog AUTHORS sample.urlview
+ dobin url_handler.sh
+}
+
+pkg_postinst() {
+ echo
+ einfo "There is a sample.urlview in /usr/share/doc/${P}"
+ einfo "You can also customize /usr/bin/url_handler.sh"
+ echo
+ einfo "If using urlview from mutt, you may need to "set pipe_decode" in"
+ einfo "your ~/.muttrc to prevent garbled URLs."
+ echo
+}