pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_notify Even more github support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/815b792b3ce2
branches:  trunk
changeset: 353694:815b792b3ce2
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Oct 10 07:42:53 2016 +0000

description:
Even more github support.
Bump version.

diffstat:

 pkgtools/pkg_notify/Makefile         |   4 ++--
 pkgtools/pkg_notify/files/pkg_notify |  11 ++++++++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r dbfe94eb18bc -r 815b792b3ce2 pkgtools/pkg_notify/Makefile
--- a/pkgtools/pkg_notify/Makefile      Mon Oct 10 06:37:37 2016 +0000
+++ b/pkgtools/pkg_notify/Makefile      Mon Oct 10 07:42:53 2016 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2016/08/31 21:15:36 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2016/10/10 07:42:53 wiz Exp $
 
-PKGNAME=       pkg_notify-0.4.5
+PKGNAME=       pkg_notify-0.4.6
 CATEGORIES=    pkgtools
 
 MAINTAINER=    imil%gcu.info@localhost
diff -r dbfe94eb18bc -r 815b792b3ce2 pkgtools/pkg_notify/files/pkg_notify
--- a/pkgtools/pkg_notify/files/pkg_notify      Mon Oct 10 06:37:37 2016 +0000
+++ b/pkgtools/pkg_notify/files/pkg_notify      Mon Oct 10 07:42:53 2016 +0000
@@ -16,7 +16,7 @@
 #
 # $ pkg_notify category/package
 #
-# $Id: pkg_notify,v 1.4 2016/08/31 21:15:36 wiz Exp $
+# $Id: pkg_notify,v 1.5 2016/10/10 07:42:53 wiz Exp $
 
 use Net::FTP;
 use LWP::UserAgent;
@@ -585,6 +585,15 @@
        $dist = "v";
     }
 
+    # github - homepage only - look at releases page
+    if ($homepage =~ /github.com/) {
+       my $project = `cd $pkgpath && $make show-var VARNAME=GITHUB_PROJECT`;
+       chomp($project);
+       $master_site = $homepage . "/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