pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_notify Add partial github support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/036a28b5e6fc
branches: trunk
changeset: 351888:036a28b5e6fc
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Aug 31 21:15:36 2016 +0000
description:
Add partial github support.
Bump version.
diffstat:
pkgtools/pkg_notify/Makefile | 5 ++---
pkgtools/pkg_notify/files/pkg_notify | 13 +++++++++++--
2 files changed, 13 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r c7c5f4dc011d -r 036a28b5e6fc pkgtools/pkg_notify/Makefile
--- a/pkgtools/pkg_notify/Makefile Wed Aug 31 21:15:01 2016 +0000
+++ b/pkgtools/pkg_notify/Makefile Wed Aug 31 21:15:36 2016 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2016/07/09 06:38:48 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2016/08/31 21:15:36 wiz Exp $
-PKGNAME= pkg_notify-0.4.4
-PKGREVISION= 3
+PKGNAME= pkg_notify-0.4.5
CATEGORIES= pkgtools
MAINTAINER= imil%gcu.info@localhost
diff -r c7c5f4dc011d -r 036a28b5e6fc pkgtools/pkg_notify/files/pkg_notify
--- a/pkgtools/pkg_notify/files/pkg_notify Wed Aug 31 21:15:01 2016 +0000
+++ b/pkgtools/pkg_notify/files/pkg_notify Wed Aug 31 21:15:36 2016 +0000
@@ -16,7 +16,7 @@
#
# $ pkg_notify category/package
#
-# $Id: pkg_notify,v 1.3 2016/08/31 21:15:01 wiz Exp $
+# $Id: pkg_notify,v 1.4 2016/08/31 21:15:36 wiz Exp $
use Net::FTP;
use LWP::UserAgent;
@@ -71,7 +71,7 @@
if ($out =~ /(.*[0-9])([\-\_\.]?)(pre|alpha|beta|gamma|rc)([0-9]*.*)/i) {
my $pre = $1;
my $dev = lc $3;
- # remember real versionning
+ # remember real versioning
$subvers = "$2$3";
my $post = $4;
# replace pre|alpha|beta... with equiv nums
@@ -576,6 +576,15 @@
$master_site = $master_site."/".$hash."/$sfpkgdir";
}
+ # github - look at releases page
+ if ($master_site =~ /github.com/) {
+ my $project = `cd $pkgpath && $make show-var VARNAME=GITHUB_PROJECT`;
+ chomp($project);
+ $master_site =~ s/(.*github.com\/[^\/]+)\/?/$1\/$project\/releases\//;
+ $distname = "v$version";
+ $dist = "v";
+ }
+
if (($distname eq "") || ($master_site eq "")) {
print "missing DISTNAME or MASTER_SITES for package $pkgname\n";
next;
Home |
Main Index |
Thread Index |
Old Index