public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2013-01-23 22:53 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2013-01-23 22:53 UTC (permalink / raw
  To: gentoo-commits

commit:     3c59e80d4f60beefc839a9823e7639191412e910
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 30 10:34:29 2012 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Wed Jan 23 22:51:36 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=3c59e80d

Default to EAPI=5

---
 plugin/newebuild.vim |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 16cec1d..e16f2be 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -42,7 +42,7 @@ fun! <SID>MakeNewEbuild()
         nohls
         " }}}
     else
-        put ='EAPI=4'
+        put ='EAPI=5'
         put =''
         if l:category ==# "app-vim"
             " {{{ app-vim special setup


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2013-01-24 20:00 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2013-01-24 20:00 UTC (permalink / raw
  To: gentoo-commits

commit:     323f65b208b66c1ed63425bf2e60718c4357d2c9
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 24 09:27:52 2013 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Jan 24 09:28:29 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=323f65b2

Don't add an empty line at the end of a new ebuild

---
 plugin/newebuild.vim |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index e16f2be..9defd81 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -156,7 +156,6 @@ fun! <SID>MakeNewEbuild()
             " {{{ extra deps for some categories
             put ='DEPEND=\"\"'
             put ='RDEPEND=\"${DEPEND}\"'
-            put =''
             " }}}
         endif
 
@@ -168,9 +167,6 @@ fun! <SID>MakeNewEbuild()
         " }}}
     endif
 
-    " Delete the empty line at the end of the file
-    $ delete
-
     if pastebackup == 0
         set nopaste
     endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2013-02-05  1:25 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2013-02-05  1:25 UTC (permalink / raw
  To: gentoo-commits

commit:     69fe99276758a56dcb172e712693959f175d4f35
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  5 00:24:28 2013 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Tue Feb  5 00:24:28 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=69fe9927

default to distutils-r1 for new dev-python ebuilds

---
 plugin/newebuild.vim |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 9defd81..530a851 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -135,7 +135,7 @@ fun! <SID>MakeNewEbuild()
                 put ='inherit games'
                 put =''
             elseif l:category ==# "dev-python"
-                put ='inherit distutils'
+                put ='inherit distutils-r1'
                 put =''
             elseif l:category =~# "^xfce-"
                 put ='inherit xfconf'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2013-06-18 22:36 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2013-06-18 22:36 UTC (permalink / raw
  To: gentoo-commits

commit:     08a2f610138b5a336fceb283d602b892e2fae1c6
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 18 22:31:30 2013 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Tue Jun 18 22:31:30 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=08a2f610

use empty keywords for live ebuilds

---
 plugin/newebuild.vim | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 530a851..2d4c928 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -21,6 +21,14 @@ fun! <SID>MakeNewEbuild()
     let l:filename = expand("%:p")
     let l:category = substitute(l:filename,
                 \ "^.*/\\([^/]\\+\\)/[^/]\\+/[^/]\\+\\.ebuild", "\\1", "g")
+
+    " use empty keywords for live ebuilds
+    if l:filename =~# "-9999\\+.ebuild\$"
+        let l:keywords = ""
+    else
+        let l:keywords = "~" . l:arch
+    endif
+
     " }}}
 
     call GentooHeader()
@@ -52,7 +60,7 @@ fun! <SID>MakeNewEbuild()
             put ='DESCRIPTION=\"vim plugin: \"'
             put ='HOMEPAGE=\"http://www.vim.org/scripts/script.php?script_id=\"'
             put ='LICENSE=\"\"'
-            put ='KEYWORDS=\"~' . l:arch . '\"'
+            put ='KEYWORDS=\"' . l:keywords . '\"'
             put ='IUSE=\"\"'
             put =''
             put ='VIM_PLUGIN_HELPFILES=\"\"'
@@ -69,7 +77,7 @@ fun! <SID>MakeNewEbuild()
             put ='HOMEPAGE=\"\"'
             put ='LICENSE=\"\"'
             put =''
-            put ='KEYWORDS=\"~' . l:arch . '\"'
+            put ='KEYWORDS=\"' . l:keywords . '\"'
             put ='IUSE=\"\"'
             put ='SLOT=\"0\"'
             put =''
@@ -91,7 +99,7 @@ fun! <SID>MakeNewEbuild()
     		put =''
     		put ='LICENSE=\"\"'
     		put ='SLOT=\"0\"'
-    		put ='KEYWORDS=\"~' . l:arch .'\"'
+            put ='KEYWORDS=\"' . l:keywords . '\"'
     		put =''
     		put ='IUSE=\"\"'
     		put =''
@@ -120,7 +128,7 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='#LICENSE=\"\|\| ( Artistic GPL-1 GPL-2 GPL-3 )\"'
             put ='SLOT=\"0\"'
-            put ='KEYWORDS=\"~' . l:arch . '\"'
+            put ='KEYWORDS=\"' . l:keywords . '\"'
             put ='IUSE=\"\"'
             put =''
             put ='RDEPEND=\"\"'
@@ -149,7 +157,7 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'
-            put ='KEYWORDS=\"~' . l:arch . '\"'
+            put ='KEYWORDS=\"' . l:keywords . '\"'
             put ='IUSE=\"\"'
             put =''
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2013-06-18 22:36 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2013-06-18 22:36 UTC (permalink / raw
  To: gentoo-commits

commit:     2016d0f187f4aad7b2850c494d498a34e2f494b2
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 18 22:32:35 2013 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Tue Jun 18 22:32:35 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=2016d0f1

fix whitespace, convert tabs to spaces

---
 plugin/newebuild.vim | 62 ++++++++++++++++++++++++++--------------------------
 1 file changed, 31 insertions(+), 31 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 2d4c928..b237f57 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -87,38 +87,38 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='need_apache2'
             " }}}
-    	elseif l:category ==# "dev-java"
-    		" {{{ dev-java generation-2 default ant ebuild
-	    	put ='JAVA_PKG_IUSE=\"doc source\"'
-    		put =''
-    		put ='inherit java-pkg-2 java-ant-2'
-    		put =''
-    		put ='DESCRIPTION=\"\"'
-    		put ='HOMEPAGE=\"\"'
-    		put ='SRC_URI=\"${P}.zip\"'
-    		put =''
-    		put ='LICENSE=\"\"'
-    		put ='SLOT=\"0\"'
+        elseif l:category ==# "dev-java"
+            " {{{ dev-java generation-2 default ant ebuild
+            put ='JAVA_PKG_IUSE=\"doc source\"'
+            put =''
+            put ='inherit java-pkg-2 java-ant-2'
+            put =''
+            put ='DESCRIPTION=\"\"'
+            put ='HOMEPAGE=\"\"'
+            put ='SRC_URI=\"${P}.zip\"'
+            put =''
+            put ='LICENSE=\"\"'
+            put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-    		put =''
-    		put ='IUSE=\"\"'
-    		put =''
-    		put ='COMMON_DEP=\"\"'
-	    	put =''
-    		put ='RDEPEND=\">=virtual/jre-1.4'
-    		put ='	${COMMON_DEP}\"'
-    		put ='DEPEND=\">=virtual/jdk-1.4'
-    		put ='	app-arch/unzip'
-    		put ='	${COMMON_DEP}\"'
-    		put =''
-    		put ='EANT_BUILD_TARGET=\"\"'
-    		put ='EANT_DOC_TARGET=\"\"'
-    		put =''
-    		put ='src_install() {'
-    		put ='	java-pkg_dojar \"${PN}.jar\"'
-    		put ='	use doc && java-pkg_dojavadoc build/javadoc'
-	    	put ='	use source && java-pkg_dosrc src'
-    		put ='}'
+            put =''
+            put ='IUSE=\"\"'
+            put =''
+            put ='COMMON_DEP=\"\"'
+            put =''
+            put ='RDEPEND=\">=virtual/jre-1.4'
+            put ='  ${COMMON_DEP}\"'
+            put ='DEPEND=\">=virtual/jdk-1.4'
+            put ='  app-arch/unzip'
+            put ='  ${COMMON_DEP}\"'
+            put =''
+            put ='EANT_BUILD_TARGET=\"\"'
+            put ='EANT_DOC_TARGET=\"\"'
+            put =''
+            put ='src_install() {'
+            put ='  java-pkg_dojar \"${PN}.jar\"'
+            put ='  use doc && java-pkg_dojavadoc build/javadoc'
+            put ='  use source && java-pkg_dosrc src'
+            put ='}'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
             put ='MODULE_AUTHOR=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2014-11-02  0:28 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2014-11-02  0:28 UTC (permalink / raw
  To: gentoo-commits

commit:     9d32de4bd34bb997ce5ee6b9701abf606ecb6952
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  1 23:29:53 2014 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Nov  1 23:29:53 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=9d32de4b

update default jre/jdk version deps

The related virtuals for 1.4 aren't in the tree anymore and most newer
stuff is probably at least >=1.5 by now.

---
 plugin/newebuild.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index b237f57..adb642f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -105,9 +105,9 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='COMMON_DEP=\"\"'
             put =''
-            put ='RDEPEND=\">=virtual/jre-1.4'
+            put ='RDEPEND=\">=virtual/jre-1.5'
             put ='  ${COMMON_DEP}\"'
-            put ='DEPEND=\">=virtual/jdk-1.4'
+            put ='DEPEND=\">=virtual/jdk-1.5'
             put ='  app-arch/unzip'
             put ='  ${COMMON_DEP}\"'
             put =''


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2015-08-10 15:25 Mike Gilbert
  0 siblings, 0 replies; 76+ messages in thread
From: Mike Gilbert @ 2015-08-10 15:25 UTC (permalink / raw
  To: gentoo-commits

commit:     eb01b85ce68f840f2060efe7a51b8fff8c1e07d6
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 15:24:41 2015 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 15:24:41 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=eb01b85c

Change $Header: $ to $Id$ in header

 plugin/gentoo-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 6d1a0be..402c901 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -34,7 +34,7 @@ fun! GentooHeader(...)
         0 put =l:copyright
     endif
     put ='# Distributed under the terms of the GNU General Public License v2'
-    put ='# $Header: $'
+    put ='# $Id$'
     $
 endfun
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-02-01 23:42 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-02-01 23:42 UTC (permalink / raw
  To: gentoo-commits

commit:     d97610803dc22a65e28ef5508f3adf82cbfa3bac
Author:     Manuel Rüger <mrueg <AT> rueg <DOT> eu>
AuthorDate: Wed Sep 23 23:04:46 2015 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Wed Sep 23 23:04:46 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d9761080

Replace deprecated call to runscript with openrc-run

See also:
https://github.com/OpenRC/openrc/commit/3470eda3f5cea437a6de132b1ead3f27effd3902
https://bugs.gentoo.org/show_bug.cgi?id=494220

 plugin/newinitd.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newinitd.vim b/plugin/newinitd.vim
index 8195285..bf6d2aa 100644
--- a/plugin/newinitd.vim
+++ b/plugin/newinitd.vim
@@ -13,7 +13,7 @@ let g:loaded_newinitd=1
 runtime! plugin/gentoo-common.vim
 
 fun! <SID>MakeNewInitd()
-    call GentooHeader('#!/sbin/runscript')
+    call GentooHeader('#!/sbin/openrc-run')
 
     " {{{ default functions
     put ='depend() {'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     e46843e323a95a4247bf108ddaad72724b1b78bf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 12:26:05 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:08 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=e46843e3

newmetadata: tex herd was appropriate for dev-tex/ packages

 plugin/newmetadata.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index c7dbe9f..09acac8 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -58,7 +58,7 @@ fun! <SID>MakeNewMetadata()
         elseif l:category ==# "dev-ruby"
             let l:herd = "ruby"
         elseif l:category ==# "dev-tex"
-            let l:herd = "text-markup"
+            let l:herd = "tex"
         elseif l:category ==# "dev-java"
             let l:herd = "java"
         endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     0633017890ed4e47b7e551ef430716a9cfda6973
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:16:41 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=06330178

newebuild: Use EAPI=6 by default

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 2f67e54..9bc5a6b 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -53,7 +53,7 @@ fun! <SID>MakeNewEbuild()
         nohls
         " }}}
     else
-        put ='EAPI=5'
+        put ='EAPI=6'
         put =''
         if l:category ==# "app-vim"
             " {{{ app-vim special setup


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     d7d9ad7ac5dd056c0abf601327ee3a545ea6554a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:14:57 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d7d9ad7a

newebuild: Stop using games.eclass

 plugin/newebuild.vim | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 81941fe..a79d217 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -140,10 +140,7 @@ fun! <SID>MakeNewEbuild()
         else
             " {{{ standard default setup
             " {{{ extra inherits for some categories
-            if l:category =~# "^games-"
-                put ='inherit games'
-                put =''
-            elseif l:category ==# "dev-python"
+            if l:category ==# "dev-python"
                 put ='inherit distutils-r1'
                 put =''
             elseif l:category =~# "^xfce-"


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     fd36541a22f8673961bdf64358c94da079d782d3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:18:20 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=fd36541a

GentooGetArch: default to amd64 rather than x86

 plugin/gentoo-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 402c901..99bc29d 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -47,7 +47,7 @@ fun! GentooGetArch()
         let l:a = substitute(l:a, "^\\s\\+", "", "")
         let l:a = substitute(l:a, "\\s.*", "", "")
         if l:a == ""
-            let l:a = "x86"
+            let l:a = "amd64"
         endif
         let g:gentooarch = l:a
         return g:gentooarch


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     6400aa4726372ce6834f459f441c1d8ab01f3a36
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:06:35 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=6400aa47

newebuild: Update eclass template for eclassdoc

 plugin/newebuild.vim | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index adb642f..05c8179 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -35,17 +35,20 @@ fun! <SID>MakeNewEbuild()
 
     if expand("%:e") =~# "eclass\$"
         " {{{ eclass special setup
-        let l:eclass=substitute(expand("%:t"), "\\.eclass\$", "", "")
-        put ='#'
-        put ='# Original Author: ' . GentooGetUser()
-        put ='# Purpose: '
-        put ='#'
+        let l:eclass=expand("%:t")
+        put ='# @ECLASS: ' . l:eclass
+        put ='# @MAINTAINER:'
+        put ='# ' . GentooGetUser()
+        put ='# @AUTHOR:'
+        put ='# ' . GentooGetUser()
+        put ='# @BLURB: '
+        put ='# @DESCRIPTION:'
         put =''
         " }}}
 
         " {{{ go to the first thing to edit
         0
-        /^# Purpose:/
+        /^# @BLURB:/
         normal $
         nohls
         " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     3c2c6e68310a16b96c058c9fa7e66b3119b88a89
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:29:47 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=3c2c6e68

newebuild: Guess PYTHON_TARGETS from system

 plugin/gentoo-common.vim | 23 +++++++++++++++++++++++
 plugin/newebuild.vim     |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 99bc29d..bacecd9 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -54,4 +54,27 @@ fun! GentooGetArch()
     endif
 endfun
 
+fun! GentooGetPythonTargets()
+    if exists("g:gentoopythontargets") && g:gentoopythontargets != ""
+        return g:gentoopythontargets
+    else
+        let l:py2 = system("eselect python show --python2")
+        let l:py2 = substitute(l:py2, "\n", "", "g")
+        let l:py3 = system("eselect python show --python3")
+        let l:py3 = substitute(l:py3, "\n", "", "g")
+
+        if l:py2 == ""
+            let l:py2 = "python2.7"
+        endif
+        if l:py3 == ""
+            let l:py3 = "python3.4"
+        endif
+
+        let l:pythons = substitute(l:py2 . " " . l:py3, "[.]", "_", "g")
+
+        let g:gentoopythontargets = l:pythons
+        return g:gentoopythontargets
+    endif
+endfun
+
 " vim: set et foldmethod=marker : "

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index c2bcd1c..7197e41 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -144,7 +144,7 @@ fun! <SID>MakeNewEbuild()
             " {{{ standard default setup
             " {{{ extra inherits for some categories
             if l:category ==# "dev-python"
-                put ='PYTHON_COMPAT=( python2_7 python3_4 )'
+                put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
                 put ='inherit distutils-r1'
                 put =''
             elseif l:category =~# "^xfce-"


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     5257c69de9827577e85601b1127edae96012711a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 12:52:32 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=5257c69d

newmetadata: Always put obligatory <maintainer/> parts

Always put <maintainer type="person"/> element with <email/> subelement
since some maintainer is always desired, and <email/> is obligatory.
Worst case, we'd be outputting placeholder to fill.

 plugin/newmetadata.vim | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index f9efeb4..b013d95 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -79,16 +79,12 @@ fun! <SID>MakeNewMetadata()
             put ='<email>' . l:project . '@gentoo.org</email>'
             put ='</maintainer>'
         endif
-        if l:email != "" || l:name != ""
-            put ='<maintainer type=\"person\">'
-            if l:email != ""
-                put ='<email>' . l:email . '</email>'
-            endif
-            if l:name != ""
-                put ='<name>' . l:name . '</name>'
-            endif
-            put ='</maintainer>'
+        put ='<maintainer type=\"person\">'
+        put ='<email>' . l:email . '</email>'
+        if l:name != ""
+            put ='<name>' . l:name . '</name>'
         endif
+        put ='</maintainer>'
         put ='<longdescription lang=\"en\">'
         put ='</longdescription>'
         put ='</pkgmetadata>'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     83950352a31468154679fb1a2d26abe168fe1f0b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:17:36 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=83950352

newebuild: Use KEYWORDS="~amd64 ~x86" on amd64 by default

 plugin/newebuild.vim | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 9bc5a6b..c2bcd1c 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -27,6 +27,9 @@ fun! <SID>MakeNewEbuild()
         let l:keywords = ""
     else
         let l:keywords = "~" . l:arch
+        if l:arch ==# "amd64"
+            let l:keywords = l:keywords . " ~x86"
+        endif
     endif
 
     " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     1ab7dd1769b55665f791364548a4ed98538fa48b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 12:51:43 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1ab7dd17

newmetadata: Add type="" to <maintainer/> per GLEP67

 plugin/newmetadata.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 09acac8..905d5d3 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -72,7 +72,7 @@ fun! <SID>MakeNewMetadata()
             put ='<herd>' . l:herd . '</herd>'
         endif
         if l:email != "" || l:name != ""
-            put ='<maintainer>'
+            put ='<maintainer type=\"person\">'
             if l:email != ""
                 put ='<email>' . l:email . '</email>'
             endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     745c0431ed2e681b910bfa4559dd35a31dbd2033
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:13:30 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=745c0431

newebuild: Remove SRC_TEST from perl-module for EAPI 6

The SRC_TEST variable was replaced by DIST_TEST in EAPI 6, and defaults
to 'do parallel' now, so no point in putting it.

 plugin/newebuild.vim | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 25f8aca..81941fe 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -136,8 +136,6 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='RDEPEND=\"\"'
             put ='DEPEND=\"${RDEPEND}\"'
-            put =''
-            put ='SRC_TEST=\"do\"'
             " }}}
         else
             " {{{ standard default setup


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     9a96cf916a8d7994b8823928f57f550943d5ae1e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 12:29:09 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=9a96cf91

newmetadata: Replace herds with projects per GLEP67

 plugin/newmetadata.vim | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 905d5d3..7128a4e 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -49,18 +49,18 @@ fun! <SID>MakeNewMetadata()
     else
     " {{{ pkgmetadata
 
-        " {{{ herd
-        let l:herd = ""
+        " {{{ project
+        let l:project = ""
         if l:category ==# "app-vim"
-            let l:herd = "vim"
+            let l:project = "vim"
         elseif l:category ==# "dev-perl"
-            let l:herd = "perl"
+            let l:project = "perl"
         elseif l:category ==# "dev-ruby"
-            let l:herd = "ruby"
+            let l:project = "ruby"
         elseif l:category ==# "dev-tex"
-            let l:herd = "tex"
+            let l:project = "tex"
         elseif l:category ==# "dev-java"
-            let l:herd = "java"
+            let l:project = "java"
         endif
         " }}}
 
@@ -68,8 +68,10 @@ fun! <SID>MakeNewMetadata()
         0 put ='<?xml version=\"1.0\" encoding=\"UTF-8\"?>'
         put ='<!DOCTYPE pkgmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">'
         put ='<pkgmetadata>'
-        if l:herd != ""
-            put ='<herd>' . l:herd . '</herd>'
+        if l:project != ""
+            put ='<maintainer type=\"project\">'
+            put ='<email>' . l:project . '@gentoo.org</email>'
+            put ='</maintainer>'
         endif
         if l:email != "" || l:name != ""
             put ='<maintainer type=\"person\">'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     b2d58458783837ef1e67372e5dc1ea020edeb18c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 12:51:12 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b2d58458

newmetadata: Add more projects for some extra languages

 plugin/newmetadata.vim | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 7128a4e..f9efeb4 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -53,8 +53,14 @@ fun! <SID>MakeNewMetadata()
         let l:project = ""
         if l:category ==# "app-vim"
             let l:project = "vim"
+        elseif l:category ==# "dev-haskell"
+            let l:project = "haskell"
         elseif l:category ==# "dev-perl"
             let l:project = "perl"
+        elseif l:category ==# "dev-php"
+            let l:project = "php-bugs"
+        elseif l:category ==# "dev-python"
+            let l:project = "python"
         elseif l:category ==# "dev-ruby"
             let l:project = "ruby"
         elseif l:category ==# "dev-tex"


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     56d78daf051ff205a3e8e5b85081289e5f19c444
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:13:16 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=56d78daf

newebuild: Update default LICENSE for perl-module

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 05c8179..25f8aca 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -129,7 +129,7 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='DESCRIPTION=\"\"'
             put =''
-            put ='#LICENSE=\"\|\| ( Artistic GPL-1 GPL-2 GPL-3 )\"'
+            put ='#LICENSE=\"\|\| ( Artistic GPL-1+ )\"'
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
             put ='IUSE=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2016-03-05 23:35 Tim Harder
  0 siblings, 0 replies; 76+ messages in thread
From: Tim Harder @ 2016-03-05 23:35 UTC (permalink / raw
  To: gentoo-commits

commit:     a2a6e313e5ffc3823a69d330dbc55eb7fb340cff
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:15:39 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:31:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a2a6e313

newebuild: Include PYTHON_COMPAT for python ebuilds by default

 plugin/newebuild.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index a79d217..2f67e54 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -141,6 +141,7 @@ fun! <SID>MakeNewEbuild()
             " {{{ standard default setup
             " {{{ extra inherits for some categories
             if l:category ==# "dev-python"
+                put ='PYTHON_COMPAT=( python2_7 python3_4 )'
                 put ='inherit distutils-r1'
                 put =''
             elseif l:category =~# "^xfce-"


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2017-02-25 16:03 Mike Gilbert
  0 siblings, 0 replies; 76+ messages in thread
From: Mike Gilbert @ 2017-02-25 16:03 UTC (permalink / raw
  To: gentoo-commits

commit:     d7fdb3303abd86c19ad6e692f90f58b9123bb310
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 15:11:01 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 15:14:23 2017 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d7fdb330

Remove $Id$ from ebuild header

Ref: https://archives.gentoo.org/gentoo-dev/message/993bb2ec7107d4a05d07109d773fb1d9

 plugin/gentoo-common.vim | 1 -
 1 file changed, 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index bacecd9..09bdd34 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -34,7 +34,6 @@ fun! GentooHeader(...)
         0 put =l:copyright
     endif
     put ='# Distributed under the terms of the GNU General Public License v2'
-    put ='# $Id$'
     $
 endfun
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2017-02-25 16:06 Mike Gilbert
  0 siblings, 0 replies; 76+ messages in thread
From: Mike Gilbert @ 2017-02-25 16:06 UTC (permalink / raw
  To: gentoo-commits

commit:     055b4b16b55fe84898477ba39b37e2bcce9ccbb8
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  9 04:22:17 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Sep  9 04:22:17 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=055b4b16

plugin/newebuild.vim: use DIST_AUTHOR instead of MODULE_AUTHOR for perl ebuilds

For writing new EAPI 6 perl ebuilds properly.

Fixes #7.

 plugin/newebuild.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 7197e41..5020b36 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -127,7 +127,7 @@ fun! <SID>MakeNewEbuild()
             put ='}'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
-            put ='MODULE_AUTHOR=\"\"'
+            put ='DIST_AUTHOR=\"\"'
             put ='inherit perl-module'
             put =''
             put ='DESCRIPTION=\"\"'
@@ -171,7 +171,7 @@ fun! <SID>MakeNewEbuild()
 
         " {{{ go to the first thing to edit
         0
-        /^\(MODULE_AUTHOR\|DESCRIPTION\)=/
+        /^\(DIST_AUTHOR\|DESCRIPTION\)=/
         exec "normal 2f\""
         nohls
         " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2017-02-25 16:09 Mike Gilbert
  0 siblings, 0 replies; 76+ messages in thread
From: Mike Gilbert @ 2017-02-25 16:09 UTC (permalink / raw
  To: gentoo-commits

commit:     b57e783891032b26f0389f6e73b9582700acec8e
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 15:11:01 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 16:07:54 2017 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b57e7838

Remove $Id$ from ebuild header

Ref: https://archives.gentoo.org/gentoo-dev/message/993bb2ec7107d4a05d07109d773fb1d9

 plugin/gentoo-common.vim | 1 -
 1 file changed, 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index bacecd9..09bdd34 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -34,7 +34,6 @@ fun! GentooHeader(...)
         0 put =l:copyright
     endif
     put ='# Distributed under the terms of the GNU General Public License v2'
-    put ='# $Id$'
     $
 endfun
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-14 13:55 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-08-14 13:55 UTC (permalink / raw
  To: gentoo-commits

commit:     1d9835779a3da3e1ec8e837b256a98aceef913af
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 15 13:41:17 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:55:26 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1d983577

plugin: newglep to fill GLEP skeleton in

Closes: https://github.com/gentoo/gentoo-syntax/pull/14

 plugin/newglep.vim | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)

diff --git a/plugin/newglep.vim b/plugin/newglep.vim
new file mode 100644
index 0000000..c8cf03a
--- /dev/null
+++ b/plugin/newglep.vim
@@ -0,0 +1,104 @@
+" Vim plugin
+" Purpose:      New GLEP skeleton
+" Author:       Michał Górny <mgorny@gentoo.org>
+" Copyright:    Copyright (c) 2017 Michał Górny
+" Licence:      You may redistribute this under the same terms as Vim itself
+
+if &compatible || v:version < 603 || exists("g:loaded_newglep")
+    finish
+endif
+
+let g:loaded_newglep=1
+
+runtime! plugin/gentoo-common.vim
+
+fun! <SID>MakeNewGLEP()
+    let l:pastebackup = &paste
+    set nopaste
+
+    " {{{ variables
+    let l:filename = expand("%:t")
+    let l:basename = expand("%:t:r")
+    let l:number = str2nr(substitute(l:basename, "^glep-", "", ""))
+    let l:date = strftime("%Y-%m-%d")
+    " }}}
+
+    " {{{ header preamble
+    put ='---'
+    put ='GLEP: ' . l:number
+    put ='Title: '
+    put ='Author: ' . GentooGetUser()
+    put ='Type: Standards Track'
+    put ='Status: Draft'
+    put ='Version: 1'
+    put ='Created: ' . l:date
+    put ='Last-Modified: ' . l:date
+    put ='Post-History: '
+    put ='Content-Type: text/x-rst'
+    put ='Requires: '
+    put ='Replaces: '
+    put ='---'
+    " }}}
+
+    " {{{ warn if .txt suffix is used
+    if l:filename =~# ".txt\$"
+        put =''
+        put ='.. Warning: .txt suffix is obsolete, use \"' . l:basename . '.rst\" instead'
+    endif
+    " }}}
+
+    " {{{ skeleton
+    let l:sections = ['Abstract', 'Motivation', 'Specification', 'Rationale',
+        \ 'Backwards Compatibility', 'Reference Implementation', 'References',
+        \ 'Copyright']
+    for l:section in l:sections
+        let l:sectlen = len(l:section)
+        put =''
+        put =l:section
+        put =repeat('=', l:sectlen)
+        if l:section != 'Copyright'
+            put =''
+            put =''
+            put =''
+        endif
+    endfor
+    " copyright
+    put ='This work is licensed under the Creative Commons Attribution-ShareAlike 3.0'
+    put ='Unported License. To view a copy of this license, visit'
+    put ='http://creativecommons.org/licenses/by-sa/3.0/.'
+    " }}}
+
+    " {{{ go to the first thing to edit
+    0
+    del
+    /^Title:/
+    normal $
+    nohls
+    " }}}
+
+    if pastebackup == 0
+        set nopaste
+    endif
+endfun
+
+com! -nargs=0 NewGLEP call <SID>MakeNewGLEP() | set filetype=glep
+
+if !exists("g:glep_create_on_empty")
+    " Enable autogeneration of GLEPs by default
+    let g:glep_create_on_empty = 1
+endif
+
+" check to see if v:progname is vimdiff to disable new GLEP creation
+if v:progname =~ "vimdiff"
+    let g:glep_create_on_empty = 0
+endif
+
+augroup NewGLEP
+    au!
+    autocmd BufNewFile glep-[0-9][0-9][0-9][0-9].{txt,rst}
+                \ if g:glep_create_on_empty |
+                \    call <SID>MakeNewGLEP() | set filetype=glep |
+                \ endif
+augroup END
+
+" vim: set et foldmethod=marker : "


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-14 13:58 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-08-14 13:58 UTC (permalink / raw
  To: gentoo-commits

commit:     8931043f366547b065da7f3cf4ba614da149f33c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 25 18:28:23 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:58:05 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8931043f

newebuild: RDEPEND-then-DEPEND is more common

Closes: https://github.com/gentoo/gentoo-syntax/pull/17

 plugin/newebuild.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 5020b36..f8dd767 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -164,8 +164,8 @@ fun! <SID>MakeNewEbuild()
             put =''
 
             " {{{ extra deps for some categories
-            put ='DEPEND=\"\"'
-            put ='RDEPEND=\"${DEPEND}\"'
+            put ='RDEPEND=\"\"'
+            put ='DEPEND=\"${RDEPEND}\"'
             " }}}
         endif
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-14 14:13 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-08-14 14:13 UTC (permalink / raw
  To: gentoo-commits

commit:     274500850d527ce80ef4c014d3973edfbb3fd6c7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 14 14:13:17 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 14:13:17 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=27450085

newebuild: Use EAPI 7

Closes: https://github.com/gentoo/gentoo-syntax/issues/18

 plugin/newebuild.vim | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 1422f3b..7000fde 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -56,7 +56,7 @@ fun! <SID>MakeNewEbuild()
         nohls
         " }}}
     else
-        put ='EAPI=6'
+        put ='EAPI=7'
         put =''
         if l:category ==# "app-vim"
             " {{{ app-vim special setup
@@ -161,8 +161,9 @@ fun! <SID>MakeNewEbuild()
             put =''
 
             " {{{ extra deps for some categories
-            put ='RDEPEND=\"\"'
-            put ='DEPEND=\"${RDEPEND}\"'
+            put ='DEPEND=\"\"'
+            put ='RDEPEND=\"${DEPEND}\"'
+            put ='BDEPEND=\"\"'
             " }}}
         endif
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-14 14:13 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-08-14 14:13 UTC (permalink / raw
  To: gentoo-commits

commit:     1a9b768fee96fbdef1abe9b3f49edff8dfcd4aaa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 14 14:10:18 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 14:10:18 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1a9b768f

newebuild: xfconf eclass is obsolete

 plugin/newebuild.vim | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index f8dd767..1422f3b 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -147,9 +147,6 @@ fun! <SID>MakeNewEbuild()
                 put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
                 put ='inherit distutils-r1'
                 put =''
-            elseif l:category =~# "^xfce-"
-                put ='inherit xfconf'
-                put =''
             endif
             " }}}
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-20 20:47 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-08-20 20:47 UTC (permalink / raw
  To: gentoo-commits

commit:     8cbe8adba2433766276be8e8a09a827fce811aa9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 20 15:54:44 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 20 20:47:04 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8cbe8adb

newinitd: Update for the modern declarative syntax

Bug: https://bugs.gentoo.org/605078

 plugin/newinitd.vim | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/plugin/newinitd.vim b/plugin/newinitd.vim
index bf6d2aa..f11dd0f 100644
--- a/plugin/newinitd.vim
+++ b/plugin/newinitd.vim
@@ -15,16 +15,20 @@ runtime! plugin/gentoo-common.vim
 fun! <SID>MakeNewInitd()
     call GentooHeader('#!/sbin/openrc-run')
 
-    " {{{ default functions
-    put ='depend() {'
-    put =''
-    put ='}'
-    put =''
-    put ='start() {'
-    put =''
-    put ='}'
+    " {{{ variables
+    let l:scriptname = expand("%:t:r")
+    " }}}
+    "
+    " {{{ common metadata
+    put ='name=\"' . l:scriptname . ' daemon\"'
+    put ='description=\"\"'
+    put ='command=/usr/bin/' . l:scriptname
+    put ='command_args=\"${' . l:scriptname . '_args}\"'
+    " }}}
+
+    " {{{ functions
     put =''
-    put ='stop() {'
+    put ='depend() {'
     put =''
     put ='}'
     " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-08-27 19:52 James Le Cuirot
  0 siblings, 0 replies; 76+ messages in thread
From: James Le Cuirot @ 2018-08-27 19:52 UTC (permalink / raw
  To: gentoo-commits

commit:     a6d3b0beb193ab31044f4bb791c855e420691f4e
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 21 17:15:50 2018 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Aug 27 19:51:52 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a6d3b0be

update sample java ebuild

Closes: https://bugs.gentoo.org/664190

 plugin/newebuild.vim | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 7000fde..dd195ee 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -94,10 +94,10 @@ fun! <SID>MakeNewEbuild()
             put ='need_apache2'
             " }}}
         elseif l:category ==# "dev-java"
-            " {{{ dev-java generation-2 default ant ebuild
+            " {{{ dev-java generation-2 default java-pkg-simple ebuild
             put ='JAVA_PKG_IUSE=\"doc source\"'
             put =''
-            put ='inherit java-pkg-2 java-ant-2'
+            put ='inherit java-pkg-2 java-pkg-simple'
             put =''
             put ='DESCRIPTION=\"\"'
             put ='HOMEPAGE=\"\"'
@@ -109,22 +109,12 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='IUSE=\"\"'
             put =''
-            put ='COMMON_DEP=\"\"'
+            put ='CP_DEPEND=\"\"'
             put =''
-            put ='RDEPEND=\">=virtual/jre-1.5'
-            put ='  ${COMMON_DEP}\"'
-            put ='DEPEND=\">=virtual/jdk-1.5'
-            put ='  app-arch/unzip'
-            put ='  ${COMMON_DEP}\"'
-            put =''
-            put ='EANT_BUILD_TARGET=\"\"'
-            put ='EANT_DOC_TARGET=\"\"'
-            put =''
-            put ='src_install() {'
-            put ='  java-pkg_dojar \"${PN}.jar\"'
-            put ='  use doc && java-pkg_dojavadoc build/javadoc'
-            put ='  use source && java-pkg_dosrc src'
-            put ='}'
+            put ='RDEPEND=\">=virtual/jre-1.8'
+            put ='  ${CP_DEPEND}\"'
+            put ='DEPEND=\">=virtual/jdk-1.8'
+            put ='  ${CP_DEPEND}\"'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
             put ='DIST_AUTHOR=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2018-09-16 17:17 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2018-09-16 17:17 UTC (permalink / raw
  To: gentoo-commits

commit:     612370f642c2efeb0d1a44457fe6c5c486441228
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 16 17:17:09 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 16 17:17:09 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=612370f6

Update copyright line for new ebuilds

 plugin/gentoo-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 09bdd34..fe00202 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -24,7 +24,7 @@ endfun
 fun! GentooHeader(...)
     " The shebang arg is optional
     let l:year = strftime("%Y")
-    let l:copyright = '# Copyright 1999-' . l:year . ' Gentoo Foundation'
+    let l:copyright = '# Copyright ' . l:year . ' Gentoo Authors'
 
     " Only one arg allowed (shebang only)
     if a:0 == 1


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2019-06-09 17:35 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2019-06-09 17:35 UTC (permalink / raw
  To: gentoo-commits

commit:     f0c5ef93e88572d16a5251a2c7a67366a735a766
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  9 17:35:29 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 17:35:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=f0c5ef93

newglep: Use https:// for CC license URL

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newglep.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newglep.vim b/plugin/newglep.vim
index c8cf03a..850ab5c 100644
--- a/plugin/newglep.vim
+++ b/plugin/newglep.vim
@@ -65,7 +65,7 @@ fun! <SID>MakeNewGLEP()
     " copyright
     put ='This work is licensed under the Creative Commons Attribution-ShareAlike 3.0'
     put ='Unported License. To view a copy of this license, visit'
-    put ='http://creativecommons.org/licenses/by-sa/3.0/.'
+    put ='https://creativecommons.org/licenses/by-sa/3.0/.'
     " }}}
 
     " {{{ go to the first thing to edit


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2019-08-17  6:52 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2019-08-17  6:52 UTC (permalink / raw
  To: gentoo-commits

commit:     50323c29c07bb23db971ce34846c607ddd440fe3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 17 06:52:32 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 17 06:52:32 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=50323c29

newebuild: Support acct-{group,user} categories

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index dd195ee..26d5a9f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -58,7 +58,25 @@ fun! <SID>MakeNewEbuild()
     else
         put ='EAPI=7'
         put =''
-        if l:category ==# "app-vim"
+        if l:category ==# "acct-group"
+            " {{{ acct-group special setup
+            put ='inherit acct-group'
+            put =''
+            put ='ACCT_GROUP_ID='
+            " }}}
+        elseif l:category ==# "acct-user"
+            " {{{ acct-user special setup
+            let l:username=substitute(expand("%:t:r"),
+                    \ "\\(.*\\)-[0-9]*.*", "\\1", "")
+            put ='inherit acct-user'
+            put =''
+            put ='DESCRIPTION=\"\"'
+            put ='ACCT_USER_ID='
+            put ='ACCT_USER_GROUPS=( ' . l:username . ' )'
+            put =''
+            put ='acct-user_add_deps'
+            " }}}
+        elseif l:category ==# "app-vim"
             " {{{ app-vim special setup
             put ='#VIM_PLUGIN_VIM_VERSION=\"7.0\"'
             put ='inherit vim-plugin'
@@ -159,8 +177,8 @@ fun! <SID>MakeNewEbuild()
 
         " {{{ go to the first thing to edit
         0
-        /^\(DIST_AUTHOR\|DESCRIPTION\)=/
-        exec "normal 2f\""
+        /^\(ACCT_GROUP_ID\|DIST_AUTHOR\|DESCRIPTION\)=/
+        exec "normal f=ll"
         nohls
         " }}}
     endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2019-11-27  8:16 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2019-11-27  8:16 UTC (permalink / raw
  To: gentoo-commits

commit:     c7ab3c0f6efbe68e864273ad460ab06905930bd0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 27 08:15:29 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 27 08:15:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=c7ab3c0f

plugin/newmetadata.vim: Don't put longdescription in pkg

This frequently results in people leaving an empty element, or copying
short description there.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newmetadata.vim | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index b013d95..d9dea63 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -85,8 +85,6 @@ fun! <SID>MakeNewMetadata()
             put ='<name>' . l:name . '</name>'
         endif
         put ='</maintainer>'
-        put ='<longdescription lang=\"en\">'
-        put ='</longdescription>'
         put ='</pkgmetadata>'
         exec "normal gg=G"
         " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2019-12-13 18:27 Mikle Kolyada
  0 siblings, 0 replies; 76+ messages in thread
From: Mikle Kolyada @ 2019-12-13 18:27 UTC (permalink / raw
  To: gentoo-commits

commit:     d4532098c7d8a0cff1d6a64d0470c55f527fce96
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 13 18:14:03 2019 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Dec 13 18:27:44 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d4532098

remove empty iuse

Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 plugin/newebuild.vim | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 26d5a9f..8378fab 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -85,7 +85,6 @@ fun! <SID>MakeNewEbuild()
             put ='HOMEPAGE=\"http://www.vim.org/scripts/script.php?script_id=\"'
             put ='LICENSE=\"\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
             put ='VIM_PLUGIN_HELPFILES=\"\"'
             put ='VIM_PLUGIN_HELPTEXT=\"\"'
@@ -102,7 +101,6 @@ fun! <SID>MakeNewEbuild()
             put ='LICENSE=\"\"'
             put =''
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put ='SLOT=\"0\"'
             put =''
             put ='# See apache-module.eclass for more information.'
@@ -125,8 +123,6 @@ fun! <SID>MakeNewEbuild()
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
             put =''
-            put ='IUSE=\"\"'
-            put =''
             put ='CP_DEPEND=\"\"'
             put =''
             put ='RDEPEND=\">=virtual/jre-1.8'
@@ -143,7 +139,6 @@ fun! <SID>MakeNewEbuild()
             put ='#LICENSE=\"\|\| ( Artistic GPL-1+ )\"'
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
             put ='RDEPEND=\"\"'
             put ='DEPEND=\"${RDEPEND}\"'
@@ -165,7 +160,6 @@ fun! <SID>MakeNewEbuild()
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
 
             " {{{ extra deps for some categories


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2019-12-13 18:29 Mikle Kolyada
  0 siblings, 0 replies; 76+ messages in thread
From: Mikle Kolyada @ 2019-12-13 18:29 UTC (permalink / raw
  To: gentoo-commits

commit:     946aac94d5690e9ca1ca2db21a254fea56e45b2b
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 13 18:14:03 2019 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Dec 13 18:29:14 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=946aac94

newebuild: remove empty iuse

Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 plugin/newebuild.vim | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 26d5a9f..8378fab 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -85,7 +85,6 @@ fun! <SID>MakeNewEbuild()
             put ='HOMEPAGE=\"http://www.vim.org/scripts/script.php?script_id=\"'
             put ='LICENSE=\"\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
             put ='VIM_PLUGIN_HELPFILES=\"\"'
             put ='VIM_PLUGIN_HELPTEXT=\"\"'
@@ -102,7 +101,6 @@ fun! <SID>MakeNewEbuild()
             put ='LICENSE=\"\"'
             put =''
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put ='SLOT=\"0\"'
             put =''
             put ='# See apache-module.eclass for more information.'
@@ -125,8 +123,6 @@ fun! <SID>MakeNewEbuild()
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
             put =''
-            put ='IUSE=\"\"'
-            put =''
             put ='CP_DEPEND=\"\"'
             put =''
             put ='RDEPEND=\">=virtual/jre-1.8'
@@ -143,7 +139,6 @@ fun! <SID>MakeNewEbuild()
             put ='#LICENSE=\"\|\| ( Artistic GPL-1+ )\"'
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
             put ='RDEPEND=\"\"'
             put ='DEPEND=\"${RDEPEND}\"'
@@ -165,7 +160,6 @@ fun! <SID>MakeNewEbuild()
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'
             put ='KEYWORDS=\"' . l:keywords . '\"'
-            put ='IUSE=\"\"'
             put =''
 
             " {{{ extra deps for some categories


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2020-03-08 13:24 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2020-03-08 13:24 UTC (permalink / raw
  To: gentoo-commits

commit:     42163237b57c56de9a24fe6549e46c805fab2bb3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  8 13:24:17 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar  8 13:24:49 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=42163237

plugin/gentoo-common.vim: Stop suggesting py2 in newebuild

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index fe00202..65a8691 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -57,19 +57,14 @@ fun! GentooGetPythonTargets()
     if exists("g:gentoopythontargets") && g:gentoopythontargets != ""
         return g:gentoopythontargets
     else
-        let l:py2 = system("eselect python show --python2")
-        let l:py2 = substitute(l:py2, "\n", "", "g")
         let l:py3 = system("eselect python show --python3")
         let l:py3 = substitute(l:py3, "\n", "", "g")
 
-        if l:py2 == ""
-            let l:py2 = "python2.7"
-        endif
         if l:py3 == ""
-            let l:py3 = "python3.4"
+            let l:py3 = "python3.8"
         endif
 
-        let l:pythons = substitute(l:py2 . " " . l:py3, "[.]", "_", "g")
+        let l:pythons = substitute(l:py3, "[.]", "_", "g")
 
         let g:gentoopythontargets = l:pythons
         return g:gentoopythontargets


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2020-06-04  6:02 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2020-06-04  6:02 UTC (permalink / raw
  To: gentoo-commits

commit:     632d0a72c83cd0ccf7f40cb64470dc84f51bdce2
Author:     Freed-Wu <Wuzy01 <AT> qq <DOT> com>
AuthorDate: Thu Jun  4 05:28:32 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun  4 06:02:21 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=632d0a72

use git config to get email and name of user

Closes: https://github.com/gentoo/gentoo-syntax/pull/29
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 65a8691..a0fe9cc 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,10 +13,9 @@ let g:loaded_gentoo_common=1
 fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
-        let l:result = expand("\$USER")
-    endif
-    if l:result ==# "\$USER"
-        let l:result = ""
+        let l:email = system('git config --global user.email')
+        let l:name = system('git config --global user.name')
+        let l:result = l:name . ' <' . l:email . '>'
     endif
     return l:result
 endfun
@@ -71,4 +70,4 @@ fun! GentooGetPythonTargets()
     endif
 endfun
 
-" vim: set et foldmethod=marker : "
+" vim: set et foldmethod=marker sw=4 ts=4 : "


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2020-06-05  5:28 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2020-06-05  5:28 UTC (permalink / raw
  To: gentoo-commits

commit:     47b6900c425614d4ba22223c13a23920f0618d9f
Author:     Freed-Wu <Wuzy01 <AT> qq <DOT> com>
AuthorDate: Fri Jun  5 00:12:56 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun  5 05:28:30 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=47b6900c

Fix error when executable('git') == 1

Closes: https://github.com/gentoo/gentoo-syntax/pull/30
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index a0fe9cc..a15636a 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,8 +13,8 @@ let g:loaded_gentoo_common=1
 fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
-        let l:email = system('git config --global user.email')
-        let l:name = system('git config --global user.name')
+        let l:email = executable('git') ? system('git config --global user.email') : expand('$HOST')
+        let l:name = executable('git') ? system('git config --global user.name') : expand('$USER')
         let l:result = l:name . ' <' . l:email . '>'
     endif
     return l:result


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2020-10-07 10:07 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2020-10-07 10:07 UTC (permalink / raw
  To: gentoo-commits

commit:     3d90ee5686e54fb1c3242f10e644a789579a4372
Author:     Freed-Wu <Wuzy01 <AT> qq <DOT> com>
AuthorDate: Wed Sep 23 13:34:24 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct  7 10:07:16 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=3d90ee56

Add trim for GentooGetUser()

Signed-off-by: 吴振宇 <Wuzy01 <AT> qq.com>
Closes: https://github.com/gentoo/gentoo-syntax/pull/31
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index a15636a..1c9f4ed 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,8 +13,8 @@ let g:loaded_gentoo_common=1
 fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
-        let l:email = executable('git') ? system('git config --global user.email') : expand('$HOST')
-        let l:name = executable('git') ? system('git config --global user.name') : expand('$USER')
+        let l:email = executable('git') ? trim(system('git config --global user.email')) : expand('$HOST')
+        let l:name = executable('git') ? trim(system('git config --global user.name')) : expand('$USER')
         let l:result = l:name . ' <' . l:email . '>'
     endif
     return l:result


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-07-16 15:30 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-07-16 15:30 UTC (permalink / raw
  To: gentoo-commits

commit:     699403207695d0810a3744d9ae87d51f7ca3ce0b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 16 15:10:33 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 16 15:10:33 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=69940320

newebuild: Default to EAPI 8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 8378fab..7c5f46a 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -56,7 +56,7 @@ fun! <SID>MakeNewEbuild()
         nohls
         " }}}
     else
-        put ='EAPI=7'
+        put ='EAPI=8'
         put =''
         if l:category ==# "acct-group"
             " {{{ acct-group special setup


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-07-16 15:30 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-07-16 15:30 UTC (permalink / raw
  To: gentoo-commits

commit:     face8293c75d9c7b837e11f67f90d657b167efc4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 16 15:30:30 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 16 15:30:30 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=face8293

newebuild: Improve eclass boilerplate

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 7c5f46a..756b7f9 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -44,9 +44,20 @@ fun! <SID>MakeNewEbuild()
         put ='# ' . GentooGetUser()
         put ='# @AUTHOR:'
         put ='# ' . GentooGetUser()
+        put ='# @SUPPORTED_EAPIS: 8'
         put ='# @BLURB: '
         put ='# @DESCRIPTION:'
         put =''
+        let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")
+        put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then'
+        put =''
+        put ='case ${EAPI} in'
+        put ='	8) ;;'
+        put ='	*) die \"EAPI ${EAPI} unsupported.\"'
+        put ='esac'
+        put =''
+        put ='_' . l:eclass_ident . '=1'
+        put ='fi'
         " }}}
 
         " {{{ go to the first thing to edit


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-07-16 18:36 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-07-16 18:36 UTC (permalink / raw
  To: gentoo-commits

commit:     14aec3bde121c797f9131da0d4b18a932598bb8f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 16 18:36:16 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 16 18:36:16 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=14aec3bd

newebuild: Add ${ECLASS} to unsupported EAPI error

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 756b7f9..3d42564 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -53,7 +53,7 @@ fun! <SID>MakeNewEbuild()
         put =''
         put ='case ${EAPI} in'
         put ='	8) ;;'
-        put ='	*) die \"EAPI ${EAPI} unsupported.\"'
+        put ='	*) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
         put ='esac'
         put =''
         put ='_' . l:eclass_ident . '=1'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-08-28 11:02 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-08-28 11:02 UTC (permalink / raw
  To: gentoo-commits

commit:     8464589daaa95ba0f03f35d19fca4acd64c47c59
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 28 11:02:28 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 28 11:02:28 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8464589d

newglep: Update license to CC-BY-SA 4.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newglep.vim | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugin/newglep.vim b/plugin/newglep.vim
index 850ab5c..7f11075 100644
--- a/plugin/newglep.vim
+++ b/plugin/newglep.vim
@@ -63,9 +63,9 @@ fun! <SID>MakeNewGLEP()
         endif
     endfor
     " copyright
-    put ='This work is licensed under the Creative Commons Attribution-ShareAlike 3.0'
-    put ='Unported License. To view a copy of this license, visit'
-    put ='https://creativecommons.org/licenses/by-sa/3.0/.'
+    put ='This work is licensed under the Creative Commons Attribution-ShareAlike 4.0'
+    put ='International License.  To view a copy of this license, visit'
+    put ='https://creativecommons.org/licenses/by-sa/4.0/.'
     " }}}
 
     " {{{ go to the first thing to edit


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-08-28 11:20 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-08-28 11:20 UTC (permalink / raw
  To: gentoo-commits

commit:     481e8732b8fc4fba3ff5be02f0f8b48f612a556f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 28 11:20:45 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 28 11:20:45 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=481e8732

newglep: Add empty line after copyright heading

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newglep.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newglep.vim b/plugin/newglep.vim
index 7f11075..ddceb35 100644
--- a/plugin/newglep.vim
+++ b/plugin/newglep.vim
@@ -56,10 +56,10 @@ fun! <SID>MakeNewGLEP()
         put =''
         put =l:section
         put =repeat('=', l:sectlen)
+        put =''
         if l:section != 'Copyright'
             put =''
             put =''
-            put =''
         endif
     endfor
     " copyright


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-09-11 14:02 Mike Gilbert
  0 siblings, 0 replies; 76+ messages in thread
From: Mike Gilbert @ 2021-09-11 14:02 UTC (permalink / raw
  To: gentoo-commits

commit:     50344cc0ce9c3f430de883b3d8d3966933d249d0
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 11 13:54:37 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Sep 11 13:55:17 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=50344cc0

newmetadata: use https in DOCTYPE URI

Bug: https://bugs.gentoo.org/552720
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 plugin/newmetadata.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index d9dea63..629815f 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -38,7 +38,7 @@ fun! <SID>MakeNewMetadata()
     if l:iscatmetadata
         " {{{ content
         0 put ='<?xml version=\"1.0\" encoding=\"UTF-8\"?>'
-        put ='<!DOCTYPE catmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">'
+        put ='<!DOCTYPE catmetadata SYSTEM \"https://www.gentoo.org/dtd/metadata.dtd\">'
         put ='<catmetadata>'
         put ='<longdescription lang=\"en\">'
         put ='</longdescription>'
@@ -72,7 +72,7 @@ fun! <SID>MakeNewMetadata()
 
         " {{{ content
         0 put ='<?xml version=\"1.0\" encoding=\"UTF-8\"?>'
-        put ='<!DOCTYPE pkgmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">'
+        put ='<!DOCTYPE pkgmetadata SYSTEM \"https://www.gentoo.org/dtd/metadata.dtd\">'
         put ='<pkgmetadata>'
         if l:project != ""
             put ='<maintainer type=\"project\">'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-11-06 11:05 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-11-06 11:05 UTC (permalink / raw
  To: gentoo-commits

commit:     b3014c2205200b6e52a3093b1053b69a0228f878
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  6 11:04:52 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  6 11:04:52 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b3014c22

newebuild: Stop adding ~x86 on amd64

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 3d42564..36db2dd 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -27,9 +27,6 @@ fun! <SID>MakeNewEbuild()
         let l:keywords = ""
     else
         let l:keywords = "~" . l:arch
-        if l:arch ==# "amd64"
-            let l:keywords = l:keywords . " ~x86"
-        endif
     endif
 
     " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-12-08 22:40 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2021-12-08 22:40 UTC (permalink / raw
  To: gentoo-commits

commit:     2f4ec8fd66f1889c59061c93c970ac45157f5f7c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  8 22:39:32 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec  8 22:39:32 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2f4ec8fd

gentoo-common: Call python instead of eselect-python

Call python (through python-exec) in order to determine the preferred
value for PYTHON_COMPAT rather than using the obsolete eselect-python
tool.

Closes: https://github.com/gentoo/gentoo-syntax/issues/35
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 1c9f4ed..42b2451 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -56,13 +56,9 @@ fun! GentooGetPythonTargets()
     if exists("g:gentoopythontargets") && g:gentoopythontargets != ""
         return g:gentoopythontargets
     else
-        let l:py3 = system("eselect python show --python3")
+        let l:py3 = system("python -c 'import epython; print(epython.EPYTHON)'")
         let l:py3 = substitute(l:py3, "\n", "", "g")
 
-        if l:py3 == ""
-            let l:py3 = "python3.8"
-        endif
-
         let l:pythons = substitute(l:py3, "[.]", "_", "g")
 
         let g:gentoopythontargets = l:pythons


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-12-10 11:41 Vadim Misbakh-Soloviov
  0 siblings, 0 replies; 76+ messages in thread
From: Vadim Misbakh-Soloviov @ 2021-12-10 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     b6027756f5bdfaaa24b26c5472f8904f78e86c3e
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 10 11:28:26 2021 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Fri Dec 10 11:28:26 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b6027756

gentoo-common: wrap file around <=80 cols

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 plugin/gentoo-common.vim | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 50478ba..306542e 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,9 +13,15 @@ let g:loaded_gentoo_common=1
 fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
-        let l:email = executable('git') ? trim(system('git config --global user.email')) : expand('$HOST')
-        let l:name = executable('git') ? trim(system('git config --global user.name')) : expand('$USER')
-        let l:result = l:name . ' <' . l:email . '>'
+        let l:gitcfg = "git config --global "
+        if executable(git)
+            let l:email = trim(system(l:gitcfg . "user.email"))
+            let l:name = trim(system(l:gitcfg . "user.name"))
+        else
+            let l:email = expand("$HOST")
+            let l:name = expand("$USER")
+        endif
+        let l:result = l:name . " <" . l:email . ">"
     endif
     return l:result
 endfun
@@ -59,7 +65,8 @@ fun! GentooGetPythonTargets()
         let l:pyexec_path = "/etc/python-exec/python-exec.conf"
 
         if filereadable(l:pyexec_path)
-            let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")->sort()
+            let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")
+                                             \ ->sort()
             let l:py3s = []
             let l:others = []
             for l:py in l:pys
@@ -75,12 +82,15 @@ fun! GentooGetPythonTargets()
             if len(l:py3s) ==# 1
                 let l:impls = l:impls->add("python3.".l:py3s->join())
             elseif len(l:py3s) > 1
-                let l:impls = l:impls->add("python3.{".l:py3s->sort('N')->join(",")."}")
+                let l:impls = l:impls->add("python3.{".l:py3s->sort('N')
+                                   \ ->join(",")."}")
             endif
             let l:py3 = flatten(l:impls->add(l:others))->join()
         endif
         if empty(l:py3)
-            let l:py3 = system("python -c 'import epython; print(epython.EPYTHON)'")->substitute("\n","","g")
+            let l:py3 =
+                \ system("python -c 'import epython; print(epython.EPYTHON)'")
+                \ ->substitute("\n", "", "g")
         endif
 
         let l:pythons = substitute(l:py3, "[.]", "_", "g")


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2021-12-10 11:41 Vadim Misbakh-Soloviov
  0 siblings, 0 replies; 76+ messages in thread
From: Vadim Misbakh-Soloviov @ 2021-12-10 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     2455886f7fde605f081bc5fa95c5735ca89afd2d
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  9 09:12:18 2021 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Fri Dec 10 11:27:34 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2455886f

gentoo-common: try to load pythons from python-exec.conf

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 plugin/gentoo-common.vim | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 42b2451..50478ba 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -56,8 +56,32 @@ fun! GentooGetPythonTargets()
     if exists("g:gentoopythontargets") && g:gentoopythontargets != ""
         return g:gentoopythontargets
     else
-        let l:py3 = system("python -c 'import epython; print(epython.EPYTHON)'")
-        let l:py3 = substitute(l:py3, "\n", "", "g")
+        let l:pyexec_path = "/etc/python-exec/python-exec.conf"
+
+        if filereadable(l:pyexec_path)
+            let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")->sort()
+            let l:py3s = []
+            let l:others = []
+            for l:py in l:pys
+                let l:m = l:py->matchstr("^python3.*")->matchstr("\\d*$")
+                if !empty(l:m)
+                    eval l:py3s->add(l:m)
+                    continue
+                else
+                    eval l:others->add(l:py)
+                endif
+            endfor
+            let l:impls = []
+            if len(l:py3s) ==# 1
+                let l:impls = l:impls->add("python3.".l:py3s->join())
+            elseif len(l:py3s) > 1
+                let l:impls = l:impls->add("python3.{".l:py3s->sort('N')->join(",")."}")
+            endif
+            let l:py3 = flatten(l:impls->add(l:others))->join()
+        endif
+        if empty(l:py3)
+            let l:py3 = system("python -c 'import epython; print(epython.EPYTHON)'")->substitute("\n","","g")
+        endif
 
         let l:pythons = substitute(l:py3, "[.]", "_", "g")
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-01-26  8:28 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-01-26  8:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3703d611aaf46a9944095b7c9b8670dab9f8d3c5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 25 10:46:07 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 26 08:28:42 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=3703d611

newmetadata: Don't add python@ to dev-python/* by default

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newmetadata.vim | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 629815f..356bb8c 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -59,8 +59,6 @@ fun! <SID>MakeNewMetadata()
             let l:project = "perl"
         elseif l:category ==# "dev-php"
             let l:project = "php-bugs"
-        elseif l:category ==# "dev-python"
-            let l:project = "python"
         elseif l:category ==# "dev-ruby"
             let l:project = "ruby"
         elseif l:category ==# "dev-tex"


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-01-26  8:28 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-01-26  8:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3d8f12eae3c3f8996068e05aaa65cb97f0abaeb1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 25 10:51:05 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 26 08:28:42 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=3d8f12ea

newebuild: Modernize the Python template

Use PEP517 build.  It defaults to setuptools but the eclass will detect
if this is incorrect.

Add a default pypi HOMEPAGE based on the package name.

Skip DEPEND.  Python packages rarely need this class of dependencies,
RDEPEND + BDEPEND are much more common.

Add empty "test?" block in BDEPEND, as this is often necessary.
If it is not, it is easy to yank it.

Add distutils_enable_tests.  It defaults to pytest, as the most common
variant.  It will also trigger explicit failure if the package has
no tests.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 36db2dd..bd80712 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -21,6 +21,8 @@ fun! <SID>MakeNewEbuild()
     let l:filename = expand("%:p")
     let l:category = substitute(l:filename,
                 \ "^.*/\\([^/]\\+\\)/[^/]\\+/[^/]\\+\\.ebuild", "\\1", "g")
+    let l:package = substitute(l:filename,
+                \ "^.*/\\([^/]\\+\\)/[^/]\\+\\.ebuild", "\\1", "g")
 
     " use empty keywords for live ebuilds
     if l:filename =~# "-9999\\+.ebuild\$"
@@ -155,6 +157,7 @@ fun! <SID>MakeNewEbuild()
             " {{{ standard default setup
             " {{{ extra inherits for some categories
             if l:category ==# "dev-python"
+                put ='DISTUTILS_USE_PEP517=setuptools'
                 put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
                 put ='inherit distutils-r1'
                 put =''
@@ -162,7 +165,9 @@ fun! <SID>MakeNewEbuild()
             " }}}
 
             put ='DESCRIPTION=\"\"'
-            put ='HOMEPAGE=\"\"'
+            put ='HOMEPAGE=\"'
+            put ='	https://pypi.org/project/' . l:package . '/'
+            put ='\"'
             put ='SRC_URI=\"\"'
             put =''
             put ='LICENSE=\"\"'
@@ -171,9 +176,19 @@ fun! <SID>MakeNewEbuild()
             put =''
 
             " {{{ extra deps for some categories
-            put ='DEPEND=\"\"'
-            put ='RDEPEND=\"${DEPEND}\"'
-            put ='BDEPEND=\"\"'
+            if l:category ==# "dev-python"
+                put ='RDEPEND=\"\"'
+                put ='BDEPEND=\"'
+                put ='	test? ('
+                put ='	)'
+                put ='\"'
+                put =''
+                put ='distutils_enable_tests pytest'
+            else
+                put ='DEPEND=\"\"'
+                put ='RDEPEND=\"${DEPEND}\"'
+                put ='BDEPEND=\"\"'
+            endif
             " }}}
         endif
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-01-26  8:28 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-01-26  8:28 UTC (permalink / raw
  To: gentoo-commits

commit:     dad100bf745aef2739c56ac53c7d34c84956c0eb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 25 21:55:01 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 26 08:28:43 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=dad100bf

newmetadata: Include pypi remote-id

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo-syntax/pull/38
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newmetadata.vim | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 356bb8c..82f5e07 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -27,6 +27,8 @@ fun! <SID>MakeNewMetadata()
     else
         let l:category = substitute(l:filename,
                     \ "^.*/\\([^/]\\+\\)/[^/]\\+/metadata\\.xml", "\\1", "g")
+        let l:package = substitute(l:filename,
+                    \ "^.*/\\([^/]\\+\\)/metadata\\.xml", "\\1", "g")
         let l:iscatmetadata = 0
         let l:user = GentooGetUser()
         let l:email = matchstr(l:user, "\\(<\\)\\@<=[^>]\\+\\(>\\)\\@=")
@@ -83,6 +85,11 @@ fun! <SID>MakeNewMetadata()
             put ='<name>' . l:name . '</name>'
         endif
         put ='</maintainer>'
+        if l:category ==# "dev-python"
+            put ='<upstream>'
+            put ='<remote-id type=\"pypi\">' . l:package . '</remote-id>'
+            put ='</upstream>'
+        endif
         put ='</pkgmetadata>'
         exec "normal gg=G"
         " }}}


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-02-03  8:36 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-02-03  8:36 UTC (permalink / raw
  To: gentoo-commits

commit:     a3e19f88a6734e75d245147eee9647f621fed420
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 26 10:03:46 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 08:36:50 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a3e19f88

gentoo-common: Use eval() more consistently

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo-syntax/pull/39

 plugin/gentoo-common.vim | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 671a3c5..5c704ab 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -78,11 +78,11 @@ fun! GentooGetPythonTargets()
                 endif
             endfor
             if len(l:py3s) ==# 1
-                let l:impls = l:impls->add("python3_".l:py3s->join())
+                eval l:impls->add("python3_".l:py3s->join())
             elseif len(l:py3s) > 1
                 let l:min = ""
                 let l:max = ""
-                let l:py3s = l:py3s->sort('N')
+                eval l:py3s->sort('N')
                 for l:py in l:py3s
                     if l:min ==# ""
                         let l:min = l:py
@@ -96,11 +96,9 @@ fun! GentooGetPythonTargets()
                 endfor
 
                 if l:max !=# ""
-                    let l:impls = l:impls->add("python3_{".l:min.".."
-                                             \ .l:max."}")
+                    eval l:impls->add("python3_{".l:min."..".l:max."}")
                 else
-                    let l:impls = l:impls->add("python3_{".l:py3s
-                                       \ ->join(",")."}")
+                    eval l:impls->add("python3_{".l:py3s->join(",")."}")
                 endif
             endif
             let l:py3 = flatten(l:impls)->join()


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-02-03  8:36 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-02-03  8:36 UTC (permalink / raw
  To: gentoo-commits

commit:     5e64f0abc50a6c4e4f62e2452e84deaeb1c29c48
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 26 09:58:02 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 08:36:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=5e64f0ab

gentoo-common: Remove unnecessary continue

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 1 -
 1 file changed, 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index bc4da76..4c4c152 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -73,7 +73,6 @@ fun! GentooGetPythonTargets()
                 let l:m = l:py->matchstr("^python3.*")->matchstr("\\d*$")
                 if !empty(l:m)
                     eval l:py3s->add(l:m)
-                    continue
                 else
                     eval l:others->add(l:py)
                 endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-02-03  8:36 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-02-03  8:36 UTC (permalink / raw
  To: gentoo-commits

commit:     e792576ae2be0ea2ef5adf29876369f69876be9b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 26 09:59:01 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 08:36:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=e792576a

gentoo-common: Simplify adding other impls

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 4c4c152..671a3c5 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -67,17 +67,16 @@ fun! GentooGetPythonTargets()
         if filereadable(l:pyexec_path)
             let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")
                                              \ ->sort()
+            let l:impls = []
             let l:py3s = []
-            let l:others = []
             for l:py in l:pys
                 let l:m = l:py->matchstr("^python3.*")->matchstr("\\d*$")
                 if !empty(l:m)
                     eval l:py3s->add(l:m)
                 else
-                    eval l:others->add(l:py)
+                    eval l:impls->add(l:py)
                 endif
             endfor
-            let l:impls = []
             if len(l:py3s) ==# 1
                 let l:impls = l:impls->add("python3_".l:py3s->join())
             elseif len(l:py3s) > 1
@@ -104,7 +103,7 @@ fun! GentooGetPythonTargets()
                                        \ ->join(",")."}")
                 endif
             endif
-            let l:py3 = flatten(l:impls->add(l:others))->join()
+            let l:py3 = flatten(l:impls)->join()
         endif
         if empty(l:py3)
             let l:py3 =


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-02-03  8:36 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-02-03  8:36 UTC (permalink / raw
  To: gentoo-commits

commit:     a8e4f9297a38b3a0465b29aca32f14ce88720aa9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 26 09:56:59 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 08:36:47 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a8e4f929

gentoo-common: Support collapsing PYTHON_COMPAT into {x..y}

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 306542e..bc4da76 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -80,22 +80,40 @@ fun! GentooGetPythonTargets()
             endfor
             let l:impls = []
             if len(l:py3s) ==# 1
-                let l:impls = l:impls->add("python3.".l:py3s->join())
+                let l:impls = l:impls->add("python3_".l:py3s->join())
             elseif len(l:py3s) > 1
-                let l:impls = l:impls->add("python3.{".l:py3s->sort('N')
-                                   \ ->join(",")."}")
+                let l:min = ""
+                let l:max = ""
+                let l:py3s = l:py3s->sort('N')
+                for l:py in l:py3s
+                    if l:min ==# ""
+                        let l:min = l:py
+                        let l:max = l:py
+                    elseif l:py ==# l:max + 1
+                        let l:max = l:py
+                    else
+                        let l:max = ""
+                        break
+                    endif
+                endfor
+
+                if l:max !=# ""
+                    let l:impls = l:impls->add("python3_{".l:min.".."
+                                             \ .l:max."}")
+                else
+                    let l:impls = l:impls->add("python3_{".l:py3s
+                                       \ ->join(",")."}")
+                endif
             endif
             let l:py3 = flatten(l:impls->add(l:others))->join()
         endif
         if empty(l:py3)
             let l:py3 =
                 \ system("python -c 'import epython; print(epython.EPYTHON)'")
-                \ ->substitute("\n", "", "g")
+                \ ->substitute("\n", "", "g")->substitute("[.]", "_", "g")
         endif
 
-        let l:pythons = substitute(l:py3, "[.]", "_", "g")
-
-        let g:gentoopythontargets = l:pythons
+        let g:gentoopythontargets = l:py3
         return g:gentoopythontargets
     endif
 endfun


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-02-06 11:59 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-02-06 11:59 UTC (permalink / raw
  To: gentoo-commits

commit:     7f677946f3243e563782834f55df5f97c36db036
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  6 11:41:54 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  6 11:59:17 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=7f677946

plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgs

Closes: https://github.com/gentoo/gentoo-syntax/pull/41
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo-syntax/pull/42
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index bd80712..e704898 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -165,9 +165,15 @@ fun! <SID>MakeNewEbuild()
             " }}}
 
             put ='DESCRIPTION=\"\"'
-            put ='HOMEPAGE=\"'
-            put ='	https://pypi.org/project/' . l:package . '/'
-            put ='\"'
+
+            if l:category ==# "dev-python"
+                put ='HOMEPAGE=\"'
+                put ='	https://pypi.org/project/' . l:package . '/'
+                put ='\"'
+            else
+                put ='HOMEPAGE=\"\"'
+            endif
+
             put ='SRC_URI=\"\"'
             put =''
             put ='LICENSE=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-05-02 19:06 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-05-02 19:06 UTC (permalink / raw
  To: gentoo-commits

commit:     8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Mon May  2 19:02:05 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  2 19:05:01 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8f87dfb9

newebuild: move EAPI guard outside inherit guard

The convention is to put the EAPI guard before any inherit guards.

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Closes: https://github.com/gentoo/gentoo-syntax/pull/46
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 166713d..fddbc59 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -47,15 +47,15 @@ fun! <SID>MakeNewEbuild()
         put ='# @BLURB: '
         put ='# @DESCRIPTION:'
         put =''
-        let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")
-        put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then'
-        put ='_' . l:eclass_ident . '=1'
-        put =''
         put ='case ${EAPI} in'
         put ='	8) ;;'
         put ='	*) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
         put ='esac'
         put =''
+        let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")
+        put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then'
+        put ='_' . l:eclass_ident . '=1'
+        put =''
         put ='fi'
         " }}}
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-05-02 19:06 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-05-02 19:06 UTC (permalink / raw
  To: gentoo-commits

commit:     1e715eb7fc040d5aa0495c901df699db188fef0a
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Sat Apr 30 19:37:24 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  2 19:05:00 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1e715eb7

newebuild: put inherit guard variable immediately after check

For new eclasses, the provided template puts the variable at the end of
the body, but the current preference is to assign the variable
immediately after the check.

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index e704898..166713d 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -49,13 +49,13 @@ fun! <SID>MakeNewEbuild()
         put =''
         let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")
         put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then'
+        put ='_' . l:eclass_ident . '=1'
         put =''
         put ='case ${EAPI} in'
         put ='	8) ;;'
         put ='	*) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
         put ='esac'
         put =''
-        put ='_' . l:eclass_ident . '=1'
         put ='fi'
         " }}}
 


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-07-13  5:26 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-07-13  5:26 UTC (permalink / raw
  To: gentoo-commits

commit:     78a5911061ca302505f86aaefd94a392f5c958a1
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jun 22 14:27:59 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 05:21:49 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=78a59110

gentoo-common: fix "Undefined variable: git"

Closes: https://bugs.gentoo.org/842249
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Closes: https://github.com/gentoo/gentoo-syntax/pull/47
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 5c704ab..a50f690 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -14,7 +14,7 @@ fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
         let l:gitcfg = "git config --global "
-        if executable(git)
+        if executable("git")
             let l:email = trim(system(l:gitcfg . "user.email"))
             let l:name = trim(system(l:gitcfg . "user.name"))
         else


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2022-12-04 14:47 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2022-12-04 14:47 UTC (permalink / raw
  To: gentoo-commits

commit:     526aeb1acda9504a4293b2a221700f6441211a7d
Author:     Adrian <git <AT> nexadn <DOT> de>
AuthorDate: Fri Dec  2 17:58:42 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec  4 14:47:46 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=526aeb1a

GentooGetUser(): Drop --global option for git config

Omitting the --global option when obtaining git config values results in
git returning the repo-local config option, if set, and the global value
otherwise. This allows devs with a repo-specific git config (e.g. with
an alternate E-Mail address for Gentoo-specific projects) to have the
correct email address e.g. for creating metadata.xml retrieved
automatically.

Signed-off-by: Adrian Schollmeyer <git <AT> nexadn.de>
Closes: https://github.com/gentoo/gentoo-syntax/pull/50
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/gentoo-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index a50f690..faa8f6c 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,7 +13,7 @@ let g:loaded_gentoo_common=1
 fun! GentooGetUser()
     let l:result = expand("\$ECHANGELOG_USER")
     if l:result ==# "\$ECHANGELOG_USER"
-        let l:gitcfg = "git config --global "
+        let l:gitcfg = "git config "
         if executable("git")
             let l:email = trim(system(l:gitcfg . "user.email"))
             let l:name = trim(system(l:gitcfg . "user.name"))


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-01-02 18:43 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-01-02 18:43 UTC (permalink / raw
  To: gentoo-commits

commit:     9e4f5360b69558799c6974ed72248b86d09c6549
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  2 12:25:25 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan  2 13:30:14 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=9e4f5360

newebuild: Use standard clause for unsupported EAPI in new eclasses

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index fddbc59..fd3eb4f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -49,7 +49,7 @@ fun! <SID>MakeNewEbuild()
         put =''
         put ='case ${EAPI} in'
         put ='	8) ;;'
-        put ='	*) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
+        put ='	*) die \"${ECLASS}: EAPI ${EAPI:-0} not supported\" ;;'
         put ='esac'
         put =''
         let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g")


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-02-01  5:03 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-02-01  5:03 UTC (permalink / raw
  To: gentoo-commits

commit:     6133a482f1d932e00343affdd47f8051d2662a44
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Tue Aug  2 12:18:53 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  1 05:01:05 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=6133a482

plugin/newebuild.vim: adjust dev-java template

Add missing slot operators in >=virtual/jdk-1.8:*
and >=virtual/jre-1.8:*

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo-syntax/pull/49
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index fd3eb4f..cd3f44f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -135,10 +135,10 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='CP_DEPEND=\"\"'
             put =''
-            put ='RDEPEND=\">=virtual/jre-1.8'
-            put ='  ${CP_DEPEND}\"'
-            put ='DEPEND=\">=virtual/jdk-1.8'
-            put ='  ${CP_DEPEND}\"'
+            put ='RDEPEND=\">=virtual/jre-1.8:*'
+            put ='	${CP_DEPEND}\"'
+            put ='DEPEND=\">=virtual/jdk-1.8:*'
+            put ='	${CP_DEPEND}\"'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
             put ='DIST_AUTHOR=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-03-14 17:39 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-03-14 17:39 UTC (permalink / raw
  To: gentoo-commits

commit:     3f8685c047507ce85ee97be35cfcaf841448e8f7
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Tue Mar 14 16:16:58 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 17:39:47 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=3f8685c0

newebuild: Add MAVEN_ID to dev-java ebuild template

Java ebuilds in Gentoo often contain a MAVEN_ID variable.  Although no
eclasses use this variable yet, some Java ebuild tools, like
java-ebuilder, recognize this variable and use its value to establish an
ebuild-to-Maven artifact mapping.  Human maintainers may also use 'grep'
to search for an ebuild with a certain MAVEN_ID for finding out if an
ebuild for a certain Maven artifact already exists.

The MAVEN_ID variable in the dev-java ebuild template acts as a reminder
for Java ebuild authors to record the Maven artifact for the ebuild they
create when applicable.

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index cd3f44f..e5a54e4 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -122,6 +122,7 @@ fun! <SID>MakeNewEbuild()
         elseif l:category ==# "dev-java"
             " {{{ dev-java generation-2 default java-pkg-simple ebuild
             put ='JAVA_PKG_IUSE=\"doc source\"'
+            put ='MAVEN_ID=\"\"'
             put =''
             put ='inherit java-pkg-2 java-pkg-simple'
             put =''


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-03-14 17:39 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-03-14 17:39 UTC (permalink / raw
  To: gentoo-commits

commit:     e74f0208753fdb6868b70a7ebda11b4773720d8e
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Tue Mar 14 16:24:10 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 17:39:48 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=e74f0208

newebuild: Do not use *.zip SRC_URI in dev-java ebuild template

Many Java packages' source archives are available in tarball formats
like .tar.gz already, and tarballs are more preferable than Zip archives
for SRC_URI (pkgcheck has a check for this).

However, instead of replacing '.zip' with '.tar.gz', it could be better
to just leave the value of SRC_URI in the template empty, just like in
the dev-python ebuild template.

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo-syntax/pull/58
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index e5a54e4..2fa7acb 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -128,7 +128,7 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='DESCRIPTION=\"\"'
             put ='HOMEPAGE=\"\"'
-            put ='SRC_URI=\"${P}.zip\"'
+            put ='SRC_URI=\"\"'
             put =''
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-03-15  8:29 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-03-15  8:29 UTC (permalink / raw
  To: gentoo-commits

commit:     d5dc0427f63e1e42213358af1ded69440176f737
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Feb  2 11:00:02 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 15 08:29:01 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d5dc0427

newebuild: more defaults to java-pkg-simple

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo-syntax/pull/59
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 2fa7acb..c411f89 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -121,14 +121,17 @@ fun! <SID>MakeNewEbuild()
             " }}}
         elseif l:category ==# "dev-java"
             " {{{ dev-java generation-2 default java-pkg-simple ebuild
-            put ='JAVA_PKG_IUSE=\"doc source\"'
+            put ='JAVA_PKG_IUSE=\"doc source test\"'
             put ='MAVEN_ID=\"\"'
+            put ='MAVEN_PROVIDES=\"\"'
+            put ='JAVA_TESTING_FRAMEWORKS=\"junit-4\"'
             put =''
             put ='inherit java-pkg-2 java-pkg-simple'
             put =''
             put ='DESCRIPTION=\"\"'
             put ='HOMEPAGE=\"\"'
             put ='SRC_URI=\"\"'
+            put ='S=\"${WORKDIR}/${P}\"'
             put =''
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     d5ce7247e22cc5c651f0a55cbbeae5347de25149
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:33:11 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:04 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d5ce7247

newmetadata: Add python@ by default, with a warning on tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newmetadata.vim | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 82f5e07..6adce44 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -61,6 +61,8 @@ fun! <SID>MakeNewMetadata()
             let l:project = "perl"
         elseif l:category ==# "dev-php"
             let l:project = "php-bugs"
+        elseif l:category ==# "dev-python"
+            let l:project = "python"
         elseif l:category ==# "dev-ruby"
             let l:project = "ruby"
         elseif l:category ==# "dev-tex"
@@ -75,6 +77,9 @@ fun! <SID>MakeNewMetadata()
         put ='<!DOCTYPE pkgmetadata SYSTEM \"https://www.gentoo.org/dtd/metadata.dtd\">'
         put ='<pkgmetadata>'
         if l:project != ""
+            if l:project == "python"
+                put ='<!-- please remove python@ if tests do not work -->'
+            endif
             put ='<maintainer type=\"project\">'
             put ='<email>' . l:project . '@gentoo.org</email>'
             put ='</maintainer>'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     caada7fd9474f51d05fee515ba652921e3e8b440
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:34:34 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:05 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=caada7fd

newebuild: Add empty line between PYTHON block and inherit

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index ac786e4..f6a91fa 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -163,6 +163,7 @@ fun! <SID>MakeNewEbuild()
             if l:category ==# "dev-python"
                 put ='DISTUTILS_USE_PEP517=setuptools'
                 put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
+                put =''
                 put ='inherit distutils-r1 pypi'
                 put =''
             endif


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     682f102dc738eb3697e2fe0119bfb8eebf1ab209
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:29:27 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:03 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=682f102d

newebuild: Default to pypi.eclass for Python packages

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index aa0b23b..ac786e4 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -163,7 +163,7 @@ fun! <SID>MakeNewEbuild()
             if l:category ==# "dev-python"
                 put ='DISTUTILS_USE_PEP517=setuptools'
                 put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
-                put ='inherit distutils-r1'
+                put ='inherit distutils-r1 pypi'
                 put =''
             endif
             " }}}
@@ -176,9 +176,9 @@ fun! <SID>MakeNewEbuild()
                 put ='\"'
             else
                 put ='HOMEPAGE=\"\"'
+                put ='SRC_URI=\"\"'
             endif
 
-            put ='SRC_URI=\"\"'
             put =''
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     be223e2b1c8284585fde8999c6c43cd71a4c78f1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:36:11 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:06 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=be223e2b

newebuild: Default to hatchling for Python ebuilds

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo-syntax/pull/61
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index f6a91fa..8072db0 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -161,7 +161,7 @@ fun! <SID>MakeNewEbuild()
             " {{{ standard default setup
             " {{{ extra inherits for some categories
             if l:category ==# "dev-python"
-                put ='DISTUTILS_USE_PEP517=setuptools'
+                put ='DISTUTILS_USE_PEP517=hatchling'
                 put ='PYTHON_COMPAT=( ' . GentooGetPythonTargets() . ' )'
                 put =''
                 put ='inherit distutils-r1 pypi'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     0bbf805eb382875e8241c91f4c59bd44207318a5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:29:48 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:02 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=0bbf805e

newebuild: Explode RDEPEND by default

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index c411f89..aa0b23b 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -187,7 +187,8 @@ fun! <SID>MakeNewEbuild()
 
             " {{{ extra deps for some categories
             if l:category ==# "dev-python"
-                put ='RDEPEND=\"\"'
+                put ='RDEPEND=\"'
+                put ='\"'
                 put ='BDEPEND=\"'
                 put ='	test? ('
                 put ='	)'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-06-14 14:25 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-06-14 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     a29887b5827dd7107341e551287655ee62a5a44d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 12 15:33:38 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 14:25:04 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a29887b5

newmetadata: Put <stabilize-allarches/> for Python by default

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newmetadata.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 6adce44..d73c840 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -91,6 +91,7 @@ fun! <SID>MakeNewMetadata()
         endif
         put ='</maintainer>'
         if l:category ==# "dev-python"
+            put ='<stabilize-allarches/>'
             put ='<upstream>'
             put ='<remote-id type=\"pypi\">' . l:package . '</remote-id>'
             put ='</upstream>'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-11-02 12:58 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-11-02 12:58 UTC (permalink / raw
  To: gentoo-commits

commit:     0938bf901201362721d38480f2ebd339a28a9cc1
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Nov  1 19:09:50 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov  2 12:58:16 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=0938bf90

newebuild: default jdk and jre values for DEPEND and RDEPEND

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo-syntax/pull/63
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 8072db0..4138e28 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -139,10 +139,20 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='CP_DEPEND=\"\"'
             put =''
-            put ='RDEPEND=\">=virtual/jre-1.8:*'
-            put ='	${CP_DEPEND}\"'
-            put ='DEPEND=\">=virtual/jdk-1.8:*'
-            put ='	${CP_DEPEND}\"'
+            put ='DEPEND=\"${CP_DEPEND}'
+            put ='	\|\| ('
+            put ='		virtual/jdk:21'
+            put ='		virtual/jdk:17'
+            put ='		virtual/jdk:11'
+            put ='		virtual/jdk:1.8'
+            put ='	)\"'
+            put ='RDEPEND=\"${CP_DEPEND}'
+            put ='	\|\| ('
+            put ='		virtual/jre:21'
+            put ='		virtual/jre:17'
+            put ='		virtual/jre:11'
+            put ='		virtual/jre:1.8'
+            put ='	)\"'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
             put ='DIST_AUTHOR=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
@ 2023-12-27 15:58 Michał Górny
  0 siblings, 0 replies; 76+ messages in thread
From: Michał Górny @ 2023-12-27 15:58 UTC (permalink / raw
  To: gentoo-commits

commit:     382826e8b6fa99a700df9ae23f1fa0f9bff1c53c
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Dec 27 10:23:02 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 27 15:57:58 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=382826e8

newebuild: default jdk and jre values for DEPEND and RDEPEND

We partly revert commit #0938bf9012 which would have caused unnecessary
work whenever ::gentoo gets a new Java version.

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo-syntax/pull/64
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index 4138e28..747758f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -140,19 +140,9 @@ fun! <SID>MakeNewEbuild()
             put ='CP_DEPEND=\"\"'
             put =''
             put ='DEPEND=\"${CP_DEPEND}'
-            put ='	\|\| ('
-            put ='		virtual/jdk:21'
-            put ='		virtual/jdk:17'
-            put ='		virtual/jdk:11'
-            put ='		virtual/jdk:1.8'
-            put ='	)\"'
+	    put ='	>=virtual/jdk-1.8:*\"'
             put ='RDEPEND=\"${CP_DEPEND}'
-            put ='	\|\| ('
-            put ='		virtual/jre:21'
-            put ='		virtual/jre:17'
-            put ='		virtual/jre:11'
-            put ='		virtual/jre:1.8'
-            put ='	)\"'
+	    put ='	>=virtual/jre-1.8:*\"'
         elseif l:category ==# "dev-perl" || l:category ==# "perl-core"
             " {{{ perl modules default setup
             put ='DIST_AUTHOR=\"\"'


^ permalink raw reply related	[flat|nested] 76+ messages in thread

end of thread, other threads:[~2023-12-27 15:58 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-07 10:07 [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2023-12-27 15:58 Michał Górny
2023-11-02 12:58 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-03-15  8:29 Michał Górny
2023-03-14 17:39 Michał Górny
2023-03-14 17:39 Michał Górny
2023-02-01  5:03 Michał Górny
2023-01-02 18:43 Michał Górny
2022-12-04 14:47 Michał Górny
2022-07-13  5:26 Michał Górny
2022-05-02 19:06 Michał Górny
2022-05-02 19:06 Michał Górny
2022-02-06 11:59 Michał Górny
2022-02-03  8:36 Michał Górny
2022-02-03  8:36 Michał Górny
2022-02-03  8:36 Michał Górny
2022-02-03  8:36 Michał Górny
2022-01-26  8:28 Michał Górny
2022-01-26  8:28 Michał Górny
2022-01-26  8:28 Michał Górny
2021-12-10 11:41 Vadim Misbakh-Soloviov
2021-12-10 11:41 Vadim Misbakh-Soloviov
2021-12-08 22:40 Michał Górny
2021-11-06 11:05 Michał Górny
2021-09-11 14:02 Mike Gilbert
2021-08-28 11:20 Michał Górny
2021-08-28 11:02 Michał Górny
2021-07-16 18:36 Michał Górny
2021-07-16 15:30 Michał Górny
2021-07-16 15:30 Michał Górny
2020-06-05  5:28 Michał Górny
2020-06-04  6:02 Michał Górny
2020-03-08 13:24 Michał Górny
2019-12-13 18:29 Mikle Kolyada
2019-12-13 18:27 Mikle Kolyada
2019-11-27  8:16 Michał Górny
2019-08-17  6:52 Michał Górny
2019-06-09 17:35 Michał Górny
2018-09-16 17:17 Michał Górny
2018-08-27 19:52 James Le Cuirot
2018-08-20 20:47 Michał Górny
2018-08-14 14:13 Michał Górny
2018-08-14 14:13 Michał Górny
2018-08-14 13:58 Michał Górny
2018-08-14 13:55 Michał Górny
2017-02-25 16:09 Mike Gilbert
2017-02-25 16:06 Mike Gilbert
2017-02-25 16:03 Mike Gilbert
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-02-01 23:42 Tim Harder
2015-08-10 15:25 Mike Gilbert
2014-11-02  0:28 Tim Harder
2013-06-18 22:36 Tim Harder
2013-06-18 22:36 Tim Harder
2013-02-05  1:25 Tim Harder
2013-01-24 20:00 Tim Harder
2013-01-23 22:53 Tim Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox