svn commit: r432249 - in head/textproc/extract_url: . files
Olivier Duchateau
olivierd at FreeBSD.org
Mon Jan 23 16:40:45 UTC 2017
Author: olivierd
Date: Mon Jan 23 16:40:43 2017
New Revision: 432249
URL: https://svnweb.freebsd.org/changeset/ports/432249
Log:
- Update to 1.6.1
- Switch to GitHub host
- Remove GETOPT_LONG option
- Pass maintainership to submitter
PR: 216180
Submitted by: Danilo G. Baio
MFH: 2017Q1
Added:
head/textproc/extract_url/files/patch-extract__url.pl (contents, props changed)
Deleted:
head/textproc/extract_url/files/extract_urlview
Modified:
head/textproc/extract_url/Makefile
head/textproc/extract_url/distinfo
head/textproc/extract_url/files/pkg-message.in
Modified: head/textproc/extract_url/Makefile
==============================================================================
--- head/textproc/extract_url/Makefile Mon Jan 23 16:33:37 2017 (r432248)
+++ head/textproc/extract_url/Makefile Mon Jan 23 16:40:43 2017 (r432249)
@@ -2,20 +2,16 @@
# $FreeBSD$
PORTNAME= extract_url
-PORTVERSION= 1.5.8
-PORTREVISION= 1
+PORTVERSION= 1.6.1
+DISTVERSIONPREFIX= v
CATEGORIES= textproc
-MASTER_SITES= GOOGLE_CODE
-PROJECTHOST= extracturl
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= dbaio at bsd.com.br
COMMENT= Perl script that extracts URLs from email in MIME or plain text format
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN= Unfetchable (google code has gone away)
-
BUILD_DEPENDS= p5-MIME-Tools>=0:mail/p5-MIME-Tools \
p5-HTML-Parser>=0:www/p5-HTML-Parser
RUN_DEPENDS:= ${BUILD_DEPENDS}
@@ -25,26 +21,26 @@ MAKE_ARGS= all prefix=${PREFIX} man_pref
SUB_FILES= pkg-message
NO_ARCH= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_GITHUB= yes
+GH_ACCOUNT= m3m0ryh0l3
+GH_PROJECT= extracturl
PLIST_FILES= bin/extract_url \
- etc/extract_urlview.sample \
+ share/extract_url/extract_urlview.sample \
man/man1/extract_url.1.gz
PORTDOCS= AUTHORS NEWS README
-OPTIONS_DEFINE= DOCS GETOPT_LONG URI_FIND
+OPTIONS_DEFINE= DOCS URI_FIND
OPTIONS_RADIO= URL_SELECTOR
OPTIONS_RADIO_URL_SELECTOR= CURSES_UI URLVIEW
-OPTIONS_DEFAULT= CURSES_UI GETOPT_LONG URI_FIND
+OPTIONS_DEFAULT= CURSES_UI URI_FIND
OPTIONS_SUB= yes
CURSES_UI_DESC= Allows it to fully replace urlview
-GETOPT_LONG_DESC= Recognizes long options --version and --list
URI_FIND_DESC= Recognizes more exotic URL variations in plain text
URLVIEW_DESC= Uses urlview for the URL selector menu
CURSES_UI_RUN_DEPENDS= p5-Curses-UI>=0:devel/p5-Curses-UI
-GETOPT_LONG_RUN_DEPENDS=p5-Getopt-Long>=0:devel/p5-Getopt-Long
URLVIEW_RUN_DEPENDS= urlview>=0:textproc/urlview
URI_FIND_RUN_DEPENDS= p5-URI-Find>=0:textproc/p5-URI-Find
@@ -53,8 +49,9 @@ post-patch:
${WRKSRC}/${MAKEFILE}
post-install:
- ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}view \
- ${STAGEDIR}${PREFIX}/etc/${PORTNAME}view.sample
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}view.sample \
+ ${STAGEDIR}${DATADIR}/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
Modified: head/textproc/extract_url/distinfo
==============================================================================
--- head/textproc/extract_url/distinfo Mon Jan 23 16:33:37 2017 (r432248)
+++ head/textproc/extract_url/distinfo Mon Jan 23 16:40:43 2017 (r432249)
@@ -1,2 +1,3 @@
-SHA256 (extract_url-1.5.8.tar.gz) = 58eac907cb926deba74ab81e7503a1055fd3cbe20952f011d8e6b75da12d6bcc
-SIZE (extract_url-1.5.8.tar.gz) = 13861
+TIMESTAMP = 1485089324
+SHA256 (m3m0ryh0l3-extracturl-v1.6.1_GH0.tar.gz) = 6ce3a977477cce6c7c8355500db4ef660d5b22118df6534d3ab022124c62a393
+SIZE (m3m0ryh0l3-extracturl-v1.6.1_GH0.tar.gz) = 16192
Added: head/textproc/extract_url/files/patch-extract__url.pl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/extract_url/files/patch-extract__url.pl Mon Jan 23 16:40:43 2017 (r432249)
@@ -0,0 +1,22 @@
+--- extract_url.pl.orig 2017-01-18 14:59:52 UTC
++++ extract_url.pl
+@@ -54,18 +54,7 @@ sub VERSION_MESSAGE {
+
+ my $term_cols = 80;
+ my ($term_rows, $term_wpix, $term_hpix);
+-if (eval "use Term::Readkey") {
+- ($term_cols, $term_rows, $term_wpix, $term_hpix) = GetTerminalSize();
+-} else {
+- require 'sys/ioctl.ph';
+- if (defined &TIOCGWINSZ and open(TTY, "+</dev/tty")) {
+- my $winsize = '';
+- unless (ioctl(TTY, &TIOCGWINSZ, $winsize)) {
+- die sprintf "$0: ioctl TIOCGWINSZ (%08x: $!)\n", &TIOCGWINSZ;
+- }
+- ($term_rows, $term_cols, $term_wpix, $term_hpix) = unpack('S4', $winsize);
+- }
+-}
++require 'sys/ioctl.ph';
+ my $list_width = $term_cols - 4; # 4 is for the border width on either side
+
+ my %options;
Modified: head/textproc/extract_url/files/pkg-message.in
==============================================================================
--- head/textproc/extract_url/files/pkg-message.in Mon Jan 23 16:33:37 2017 (r432248)
+++ head/textproc/extract_url/files/pkg-message.in Mon Jan 23 16:40:43 2017 (r432249)
@@ -8,7 +8,7 @@ the extract_url configuration file can b
su - user
- cp %%PREFIX%%/etc/extract_urlview.sample ~/.extract_urlview
+ cp %%DATADIR%%/extract_urlview.sample ~/.extract_urlview
exit
More information about the svn-ports-all
mailing list