Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2013 14:06:14 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333865 - in head/ports-mgmt/porttools: . files
Message-ID:  <201311151406.rAFE6EEA033898@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Fri Nov 15 14:06:13 2013
New Revision: 333865
URL: http://svnweb.freebsd.org/changeset/ports/333865

Log:
  Fixup submit when port is ruby or python based.
  
  maintainer timeout.
  PR:		ports/183468
  Submitted by:	Johannes Jost Meixner

Modified:
  head/ports-mgmt/porttools/Makefile
  head/ports-mgmt/porttools/files/patch-cmd_submit.in

Modified: head/ports-mgmt/porttools/Makefile
==============================================================================
--- head/ports-mgmt/porttools/Makefile	Fri Nov 15 13:48:38 2013	(r333864)
+++ head/ports-mgmt/porttools/Makefile	Fri Nov 15 14:06:13 2013	(r333865)
@@ -3,7 +3,7 @@
 
 PORTNAME=	porttools
 PORTVERSION=	0.99
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	SF
 

Modified: head/ports-mgmt/porttools/files/patch-cmd_submit.in
==============================================================================
--- head/ports-mgmt/porttools/files/patch-cmd_submit.in	Fri Nov 15 13:48:38 2013	(r333864)
+++ head/ports-mgmt/porttools/files/patch-cmd_submit.in	Fri Nov 15 14:06:13 2013	(r333865)
@@ -1,5 +1,5 @@
---- cmd_submit.in.orig	2009-09-10 04:59:59.000000000 +0900
-+++ cmd_submit.in	2012-12-31 23:10:59.000000000 +0900
+--- ./cmd_submit.in.orig	2009-09-09 22:59:59.000000000 +0300
++++ ./cmd_submit.in	2013-10-30 11:02:11.324453150 +0200
 @@ -25,11 +25,12 @@
  		change - changing a port 
  		update - updating a port to newer version
@@ -74,9 +74,24 @@
  		exit 1
  	fi
  else
-@@ -146,6 +165,12 @@
+@@ -144,8 +163,26 @@
+ fi
+ 
  # Collect information about the port
- PORTNAME="`make -V PKGNAMEPREFIX``make -V PORTNAME``make -V PKGNAMESUFFIX`"
+-PORTNAME="`make -V PKGNAMEPREFIX``make -V PORTNAME``make -V PKGNAMESUFFIX`"
++
++# The following section comes from util_diff. 
++# For port submit to work with python/ruby ports and GNATS auto-assign, version
++# numbers need to be sed'ed out before adding to synopsis.
++
++PYTHON_SUFFIX="`make -V PYTHON_SUFFIX`"
++RUBY_SUFFIX="`make -V RUBY_SUFFIX`"
++PKGNAMEPREFIX="`make -V PKGNAMEPREFIX | sed -E "s,py${PYTHON_SUFFIX}-,py-," | sed -E "s,ruby${RUBY_SUFFIX}-,ruby-,"`"
++PKGNAMESUFFIX="`make -V PKGNAMESUFFIX`"
++PORTNAME="${PKGNAMEPREFIX}`make -V PORTNAME`${PKGNAMESUFFIX}"
++
++# Rest as normal
++
  PORTVERSION="`make -V PORTVERSION`"
 +PORTREVISION="`make -V PORTREVISION`"
 +PORTEPOCH="`make -V PORTEPOCH`"
@@ -87,7 +102,7 @@
  PKGNAME="`make -V PKGNAME`"
  CATEGORY="`make -V CATEGORIES | sed -E 's/^([^ ]+).*$/\1/'`"
  MAINTAINER="`make -V MAINTAINER`"
-@@ -155,9 +180,6 @@
+@@ -155,9 +192,6 @@
  RELEASE="`uname -srp`"
  SYSTEM="`uname -a | cut -d ' ' -f 1-12`"
  
@@ -97,7 +112,7 @@
  CC=""
  if [ "${MODE}" = "new" ]
  then
-@@ -194,10 +216,10 @@
+@@ -194,10 +228,10 @@
  		# Override some parameters if submitting an update to a newer
  		# version of an existing port
  		CLASS="update"
@@ -111,7 +126,7 @@
  	# Check to see if maintainership was requested
  	MAINT_CHANGE="`grep '^[+-]MAINTAINER' ${PATCH} | wc -l`"
  	if [ ${MAINT_CHANGE} -eq 2 ]
-@@ -242,7 +264,12 @@
+@@ -242,7 +276,12 @@
  fi
  
  # Generate Synopsis line
@@ -125,7 +140,7 @@
  
  echo "===> Generating PR form"
  PR_FORM="${TEMPROOT}/PR"
-@@ -266,9 +293,10 @@
+@@ -266,9 +305,10 @@
  	SEND-PR: 	[ low | medium | high ]
  	>Category:	ports 
  	SEND-PR: <choose from the list of categories below (one line)>
@@ -139,7 +154,7 @@
  	>Class:		${CLASS}
  	SEND-PR: [ sw-bug | doc-bug | change-request | update | maintainer-update ]
  	>Release:	${RELEASE}
-@@ -277,25 +305,15 @@
+@@ -277,25 +317,15 @@
  	>Description:
  EOF
  
@@ -168,7 +183,7 @@
  
  	if [ -n "${FILES_ADD}" ]
  	then
-@@ -326,14 +344,14 @@
+@@ -326,14 +356,14 @@
  
  cat >> ${PR_FORM} <<- EOF
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311151406.rAFE6EEA033898>