[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-10-25 Thread Maciej Barć
commit: 0327d28e43c8ce1650085e85bef18ebc4dd31f94
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed Oct 25 19:32:49 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed Oct 25 19:32:49 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=0327d28e

pyproject.toml: cleanup

Signed-off-by: Maciej Barć  gentoo.org>

 pyproject.toml | 4 
 1 file changed, 4 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 1ac45c9..ac6ff22 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,10 +16,6 @@ tag_template = "{new_version}"
 src = "./VERSION"
 search = "{current_version}"
 
-[[tool.tbump.file]]
-src = "./VERSION"
-search = "{current_version}"
-
 [[tool.tbump.file]]
 src = "./ebuild-snippets.el"
 search = ";; Version: {current_version}"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-10-25 Thread Maciej Barć
commit: 6dc74d77e999281169109c5107a8365d987a5e6c
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed Oct 25 19:25:25 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed Oct 25 19:26:12 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=6dc74d77

bump to 2.2.0

Signed-off-by: Maciej Barć  gentoo.org>

 VERSION| 2 +-
 ebuild-snippets.el | 4 ++--
 pyproject.toml | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/VERSION b/VERSION
index 7ec1d6d..ccbccc3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.0
+2.2.0

diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index cc7ba97..fccb40d 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -21,7 +21,7 @@
 
 ;; Authors: Maciej Barć 
 ;; Created: 27 Feb 2023
-;; Version: 2.1.0
+;; Version: 2.2.0
 ;; Keywords: languages
 ;; Homepage: https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git
 ;; Package-Requires: ((emacs "24"))
@@ -49,7 +49,7 @@
 (require 'yasnippet)
 
 
-(defconst ebuild-snippets-version "2.1.0"
+(defconst ebuild-snippets-version "2.2.0"
   "Ebuild-Snippets version.")
 
 

diff --git a/pyproject.toml b/pyproject.toml
index fe2a6e7..1ac45c9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
 [tool.tbump.version]
-current = "2.1.0"
+current = "2.2.0"
 regex = '''
   (?P\d+)
   \.



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-10-25 Thread Maciej Barć
commit: cbec045dceae01e78e2d0fc2328750241f153675
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed Oct 25 19:24:53 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed Oct 25 19:24:53 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=cbec045d

add pyproject.toml file

Signed-off-by: Maciej Barć  gentoo.org>

 pyproject.toml | 33 +
 1 file changed, 33 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000..fe2a6e7
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,33 @@
+[tool.tbump.version]
+current = "2.1.0"
+regex = '''
+  (?P\d+)
+  \.
+  (?P\d+)
+  \.
+  (?P\d+)
+  '''
+
+[tool.tbump.git]
+message_template = "bump to {new_version}"
+tag_template = "{new_version}"
+
+[[tool.tbump.file]]
+src = "./VERSION"
+search = "{current_version}"
+
+[[tool.tbump.file]]
+src = "./VERSION"
+search = "{current_version}"
+
+[[tool.tbump.file]]
+src = "./ebuild-snippets.el"
+search = ";; Version: {current_version}"
+
+[[tool.tbump.file]]
+src = "./ebuild-snippets.el"
+search = "defconst ebuild-snippets-version \"{current_version}\""
+
+[[tool.tbump.before_commit]]
+name = "execute make all"
+cmd = "make all"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-10-25 Thread Maciej Barć
commit: 814a60d447f3ec0363646e3f3ed07c7d814799df
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed Oct 25 19:24:43 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed Oct 25 19:24:43 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=814a60d4

add VERSION file

Signed-off-by: Maciej Barć  gentoo.org>

 VERSION | 1 +
 1 file changed, 1 insertion(+)

diff --git a/VERSION b/VERSION
new file mode 100644
index 000..7ec1d6d
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+2.1.0



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 8b3bbf00b6ea66f044c8540f3709c563a6ecef79
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:10:07 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:10:07 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=8b3bbf00

add dotnet-pkg-base_dolauncher.yas

Signed-off-by: Maciej Barć  gentoo.org>

 .../ebuild-mode/dotnet-pkg-base_dolauncher.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/dotnet-pkg-base_dolauncher.yas 
b/snippets/ebuild-mode/dotnet-pkg-base_dolauncher.yas
new file mode 100644
index 000..c0de4b3
--- /dev/null
+++ b/snippets/ebuild-mode/dotnet-pkg-base_dolauncher.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: dotnet-pkg-base_dolauncher
+# key: dotnet-pkg-base_dolauncher
+
+
+# --
+dotnet-pkg-base_dolauncher "/usr/share/\${P}/${1:\${PN}}" "${2:\${PN}}"
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: d02271cef83b195aaf09a21741fc1b7925eb9426
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:05:55 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:05:55 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=d02271ce

add nugets.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/nugets.yas | 28 
 1 file changed, 28 insertions(+)

diff --git a/snippets/ebuild-mode/nugets.yas b/snippets/ebuild-mode/nugets.yas
new file mode 100644
index 000..c81a12d
--- /dev/null
+++ b/snippets/ebuild-mode/nugets.yas
@@ -0,0 +1,28 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: nugets
+# key: nugets=
+
+
+# --
+NUGETS="
+$0
+"
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 68b0c8d1bf5dc1a32b727d111cd96c2af2b188f9
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:07:23 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:07:23 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=68b0c8d1

add dotnet_pkg_projects.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/dotnet_pkg_projects.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/dotnet_pkg_projects.yas 
b/snippets/ebuild-mode/dotnet_pkg_projects.yas
new file mode 100644
index 000..8adb21f
--- /dev/null
+++ b/snippets/ebuild-mode/dotnet_pkg_projects.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: dotnet_pkg_projects
+# key: dotnet_pkg_projects=
+
+
+# --
+DOTNET_PKG_PROJECTS=( $0 )
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 9593a5b05f7dc3e64a8e038d908cdd66fc3c093f
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:04:13 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:04:13 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=9593a5b0

add dotnet_pkg_compat.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/dotnet_pkg_compat.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/dotnet_pkg_compat.yas 
b/snippets/ebuild-mode/dotnet_pkg_compat.yas
new file mode 100644
index 000..f865d4e
--- /dev/null
+++ b/snippets/ebuild-mode/dotnet_pkg_compat.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: dotnet_pkg_compat
+# key: dotnet_pkg_compat=
+
+
+# --
+DOTNET_PKG_COMPAT=${1:7.0}
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: eb92a0e45fd8458e40c127ed3ba2645bdfd142ed
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:00:53 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:00:53 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=eb92a0e4

ada_compat.yas: add trailing input

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/ada_compat.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/ada_compat.yas 
b/snippets/ebuild-mode/ada_compat.yas
index 862e5fe..d57ed2a 100644
--- a/snippets/ebuild-mode/ada_compat.yas
+++ b/snippets/ebuild-mode/ada_compat.yas
@@ -23,4 +23,4 @@
 
 
 # --
-ADA_COMPAT=( ${1:gnat_2021} )
\ No newline at end of file
+ADA_COMPAT=( ${1:gnat_2021} $0 )
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 49a9c5026ee3e84eab0c0f0508d9b239696b5f5c
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:00:18 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:00:18 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=49a9c502

ebuild-mode: remove end lines where they should not appear

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/docs.yas| 2 +-
 snippets/ebuild-mode/python_gen_cond_dep.yas | 2 +-
 snippets/ebuild-mode/restrict.yas| 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/snippets/ebuild-mode/docs.yas b/snippets/ebuild-mode/docs.yas
index 160482d..f69d189 100644
--- a/snippets/ebuild-mode/docs.yas
+++ b/snippets/ebuild-mode/docs.yas
@@ -23,4 +23,4 @@
 
 
 # --
-DOCS=( ${1:README.md} $0 )
+DOCS=( ${1:README.md} $0 )
\ No newline at end of file

diff --git a/snippets/ebuild-mode/python_gen_cond_dep.yas 
b/snippets/ebuild-mode/python_gen_cond_dep.yas
index a3c3bf5..1bd91f6 100644
--- a/snippets/ebuild-mode/python_gen_cond_dep.yas
+++ b/snippets/ebuild-mode/python_gen_cond_dep.yas
@@ -25,4 +25,4 @@
 # --
 \$(python_gen_cond_dep '
$0
-')
+')
\ No newline at end of file

diff --git a/snippets/ebuild-mode/restrict.yas 
b/snippets/ebuild-mode/restrict.yas
index 5a73b3b..cf54a17 100644
--- a/snippets/ebuild-mode/restrict.yas
+++ b/snippets/ebuild-mode/restrict.yas
@@ -23,4 +23,4 @@
 
 
 # --
-RESTRICT="${1:!test? ( test )}"
+RESTRICT="${1:!test? ( test )}"
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: d66127fa03ba716397e83b4cc9e34f9b58fb27bd
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 09:02:31 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 09:02:31 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=d66127fa

add llvm_max_slot.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/llvm_max_slot.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/llvm_max_slot.yas 
b/snippets/ebuild-mode/llvm_max_slot.yas
new file mode 100644
index 000..8a9dcee
--- /dev/null
+++ b/snippets/ebuild-mode/llvm_max_slot.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: llvm_max_slot
+# key: llvm_max_slot=
+
+
+# --
+LLVM_MAX_SLOT=${1:17}
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 83c6e3fcf29fbda9ef6bb2865db954bac6c836ee
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:42:32 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:42:32 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=83c6e3fc

add llvm-conditional-depend.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/llvm-conditional-depend.yas | 26 
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/llvm-conditional-depend.yas 
b/snippets/ebuild-mode/llvm-conditional-depend.yas
new file mode 100644
index 000..43edbc4
--- /dev/null
+++ b/snippets/ebuild-mode/llvm-conditional-depend.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: llvm conditional depend
+# key: llvm?
+
+
+# --
+llvm? ( 

[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 97e705ea1948029103a22d5f6c5212055fd7910f
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:53:18 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:53:18 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=97e705ea

add tc-export.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/tc-export.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/tc-export.yas 
b/snippets/ebuild-mode/tc-export.yas
new file mode 100644
index 000..deefd67
--- /dev/null
+++ b/snippets/ebuild-mode/tc-export.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: tc-export
+# key: tc-export
+
+
+# --
+tc-export ${1:AR AS CC CXX LD RANLIB} $0
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: d7ec957a45656b89e7fe4c73e04f3598b109ee83
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:44:51 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:44:51 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=d7ec957a

add slot.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/slot.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/slot.yas b/snippets/ebuild-mode/slot.yas
new file mode 100644
index 000..928655b
--- /dev/null
+++ b/snippets/ebuild-mode/slot.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: slot
+# key: slot=
+
+
+# --
+SLOT="${1:0}"
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 1d7862d1b19187bbbd0219840db6560eca58aa7e
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:46:38 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:46:38 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=1d7862d1

patches.yas: add PN, extend quotes

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/patches.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/patches.yas b/snippets/ebuild-mode/patches.yas
index 5a5431c..aee3141 100644
--- a/snippets/ebuild-mode/patches.yas
+++ b/snippets/ebuild-mode/patches.yas
@@ -23,4 +23,4 @@
 
 
 # --
-PATCHES=( "\${FILESDIR}"/$1 $0 )
+PATCHES=( "\${FILESDIR}/\${PN}-$1.patch" $0 )
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: b818d119cc0368ee3fe87e4019c1fd5d715fff84
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:43:35 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:43:35 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=b818d119

add ada_compat.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/ada_compat.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/ada_compat.yas 
b/snippets/ebuild-mode/ada_compat.yas
new file mode 100644
index 000..862e5fe
--- /dev/null
+++ b/snippets/ebuild-mode/ada_compat.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: ada_compat
+# key: ada_compat=
+
+
+# --
+ADA_COMPAT=( ${1:gnat_2021} )
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: cf21e2533a1e6de231542c70f9ac54c46f9328e1
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:33:41 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:33:41 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=cf21e253

live.yas: update - quotes and spacing

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/live.yas | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/live.yas b/snippets/ebuild-mode/live.yas
index 3efeefe..895c571 100644
--- a/snippets/ebuild-mode/live.yas
+++ b/snippets/ebuild-mode/live.yas
@@ -23,11 +23,13 @@
 
 
 # --
-if [[ \${PV} == ** ]] ; then
+if [[ "\${PV}" == ** ]] ; then
inherit git-r3
+
EGIT_REPO_URI="${1:https://github.com/example/example}.git;
 else
SRC_URI="$1/archive/\${PV}.tar.gz
-> \${P}.tar.gz"
+
KEYWORDS="${2:~amd64 ~x86}"
 fi



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 4cf20807eb1f8074e8b11e42f9df4a8c01fcb129
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:37:09 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:37:09 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=4cf20807

ebuild.yas: change key, update live template

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/ebuild.yas | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas
index 27dbf3e..77df6bb 100644
--- a/snippets/ebuild-mode/ebuild.yas
+++ b/snippets/ebuild-mode/ebuild.yas
@@ -19,7 +19,7 @@
 
 
 # name: ebuild
-# key: /ebuild
+# key: ebuild=
 
 
 # --
@@ -31,12 +31,14 @@ EAPI=${1:8}
 DESCRIPTION="$2"
 HOMEPAGE="$3"
 
-if [[ \${PV} == ** ]] ; then
+if [[ "\${PV}" == ** ]] ; then
inherit git-r3
+
EGIT_REPO_URI="$3.git"
 else
SRC_URI="$3/archive/\${PV}.tar.gz
-> \${P}.tar.gz"
+
KEYWORDS="${4:~amd64 ~x86}"
 fi
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 0c7cb0b49baf50a4442f117c95cc705d021d7316
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:37:51 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:37:51 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=0c7cb0b4

distutils.yas: change key, bump python compat

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/distutils.yas | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/snippets/ebuild-mode/distutils.yas 
b/snippets/ebuild-mode/distutils.yas
index 1627c75..5141bd4 100644
--- a/snippets/ebuild-mode/distutils.yas
+++ b/snippets/ebuild-mode/distutils.yas
@@ -19,11 +19,11 @@
 
 
 # name: distutils
-# key: /distutils
+# key: distutils=
 
 
 # --
 DISTUTILS_USE_PEP517=${1:hatchling}
-PYTHON_COMPAT=( python3_{${2:10}..${3:11}} )
+PYTHON_COMPAT=( python3_{${2:10}..${3:12}} )
 
 inherit distutils-r1 ${4:pypi}



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: 2ad0d63ca2e81083b26f24163d19c89d1d268904
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:34:35 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:34:35 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=2ad0d63c

s.yas: extend quote

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/s.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/s.yas b/snippets/ebuild-mode/s.yas
index 6cbe743..5b8717e 100644
--- a/snippets/ebuild-mode/s.yas
+++ b/snippets/ebuild-mode/s.yas
@@ -23,4 +23,4 @@
 
 
 # --
-S="\${WORKDIR}"/${1:\${PN}-\${PV}}
\ No newline at end of file
+S="\${WORKDIR}/${1:\${PN}-\${PV}}"
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-10-20 Thread Maciej Barć
commit: d279a1898413b0051e775ce36122828ccfe6fda8
Author: Maciej Barć  gentoo  org>
AuthorDate: Fri Oct 20 08:35:28 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Fri Oct 20 08:35:28 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=d279a189

live.yas: change key

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/live.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/live.yas b/snippets/ebuild-mode/live.yas
index 895c571..4f5f658 100644
--- a/snippets/ebuild-mode/live.yas
+++ b/snippets/ebuild-mode/live.yas
@@ -19,7 +19,7 @@
 
 
 # name: live
-# key: /live
+# key: live=
 
 
 # --



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-07-17 Thread Maciej Barć
commit: a48fb96ce6d0d3c0439f8fb118af24404b5bb400
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Jul 17 14:24:55 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Jul 17 14:24:55 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=a48fb96c

snippets/ebuild-mode: add eapi-case.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/eapi-case.yas | 29 +
 1 file changed, 29 insertions(+)

diff --git a/snippets/ebuild-mode/eapi-case.yas 
b/snippets/ebuild-mode/eapi-case.yas
new file mode 100644
index 000..7d2f0a2
--- /dev/null
+++ b/snippets/ebuild-mode/eapi-case.yas
@@ -0,0 +1,29 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: eapi-case
+# key: eapi-case
+
+
+# --
+case \${EAPI} in
+   7|8) ;;
+   *) die "\${ECLASS}: EAPI \${EAPI:-0} not supported" ;;
+esac



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-06-13 Thread Maciej Barć
commit: 96f2d50f4ab934c6e566bb5a7086185b5646549f
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Jun 13 22:00:22 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Jun 13 22:00:22 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=96f2d50f

ebuild-snippets.el: bump to 2.1.0

Signed-off-by: Maciej Barć  gentoo.org>

 ebuild-snippets.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index 1985522..cc7ba97 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -21,7 +21,7 @@
 
 ;; Authors: Maciej Barć 
 ;; Created: 27 Feb 2023
-;; Version: 2.0.4
+;; Version: 2.1.0
 ;; Keywords: languages
 ;; Homepage: https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git
 ;; Package-Requires: ((emacs "24"))
@@ -49,7 +49,7 @@
 (require 'yasnippet)
 
 
-(defconst ebuild-snippets-version "2.0.4"
+(defconst ebuild-snippets-version "2.1.0"
   "Ebuild-Snippets version.")
 
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-06-13 Thread Maciej Barć
commit: 987d42955576bfc107dc763a1e1565a676a1129b
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Jun 13 16:23:51 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Jun 13 16:23:51 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=987d4295

ebuild-mode: add live.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/live.yas | 33 +
 1 file changed, 33 insertions(+)

diff --git a/snippets/ebuild-mode/live.yas b/snippets/ebuild-mode/live.yas
new file mode 100644
index 000..3efeefe
--- /dev/null
+++ b/snippets/ebuild-mode/live.yas
@@ -0,0 +1,33 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: live
+# key: /live
+
+
+# --
+if [[ \${PV} == ** ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="${1:https://github.com/example/example}.git;
+else
+   SRC_URI="$1/archive/\${PV}.tar.gz
+   -> \${P}.tar.gz"
+   KEYWORDS="${2:~amd64 ~x86}"
+fi



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: scripts/

2023-06-13 Thread Maciej Barć
commit: e11274a0c39e9b75f3a5452211480b18703e786a
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Jun 13 16:21:54 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Jun 13 16:21:54 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=e11274a0

eldev-install.sh: check if dist dir exists

Signed-off-by: Maciej Barć  gentoo.org>

 scripts/eldev-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/eldev-install.sh b/scripts/eldev-install.sh
index a18cf55..b84fcc6 100755
--- a/scripts/eldev-install.sh
+++ b/scripts/eldev-install.sh
@@ -36,7 +36,7 @@ fi
 
 cd "${root}"
 
-rm -r "${dist_dir}"
+[ -e "${dist_dir}" ] && rm -r "${dist_dir}"
 
 make all
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-06-13 Thread Maciej Barć
commit: 7168e2531e8d0d7bb32b5ac99178be5e049cda2d
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Jun 13 16:30:25 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Jun 13 16:30:25 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=7168e253

ebuild-mode: add distutils.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/distutils.yas | 29 +
 1 file changed, 29 insertions(+)

diff --git a/snippets/ebuild-mode/distutils.yas 
b/snippets/ebuild-mode/distutils.yas
new file mode 100644
index 000..1627c75
--- /dev/null
+++ b/snippets/ebuild-mode/distutils.yas
@@ -0,0 +1,29 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: distutils
+# key: /distutils
+
+
+# --
+DISTUTILS_USE_PEP517=${1:hatchling}
+PYTHON_COMPAT=( python3_{${2:10}..${3:11}} )
+
+inherit distutils-r1 ${4:pypi}



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-24 Thread Maciej Barć
commit: 4feedde1f49f29ffdb427889eb1a82c306421402
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed May 24 20:33:22 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed May 24 20:33:22 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=4feedde1

snippets/ebuild-mode: add s.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/s.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/s.yas b/snippets/ebuild-mode/s.yas
new file mode 100644
index 000..6cbe743
--- /dev/null
+++ b/snippets/ebuild-mode/s.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: s
+# key: s=
+
+
+# --
+S="\${WORKDIR}"/${1:\${PN}-\${PV}}
\ No newline at end of file



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-24 Thread Maciej Barć
commit: 6e34d66196c60ca865ad51fa25f950e932bc3d4b
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed May 24 20:35:20 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed May 24 20:35:20 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=6e34d661

snippets/ebuild-mode: add meson_src_configure.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/meson_src_configure.yas | 29 
 1 file changed, 29 insertions(+)

diff --git a/snippets/ebuild-mode/meson_src_configure.yas 
b/snippets/ebuild-mode/meson_src_configure.yas
new file mode 100644
index 000..eb2509b
--- /dev/null
+++ b/snippets/ebuild-mode/meson_src_configure.yas
@@ -0,0 +1,29 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: meson_src_configure
+# key: meson_src_configure
+
+
+# --
+local -a emesonargs=(
+   $0
+)
+meson_src_configure



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-24 Thread Maciej Barć
commit: 869f692ccf88af8a6867a1dabc20e9647df53c67
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed May 24 20:36:39 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed May 24 20:36:39 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=869f692c

snippets/ebuild-mode: add virtx.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/virtx.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/virtx.yas b/snippets/ebuild-mode/virtx.yas
new file mode 100644
index 000..3481153
--- /dev/null
+++ b/snippets/ebuild-mode/virtx.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: virtx
+# key: virtx
+
+
+# --
+virtx ${1:default}



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-24 Thread Maciej Barć
commit: f1cc82426de9947a829597f4150c3df4f00bb00c
Author: Maciej Barć  gentoo  org>
AuthorDate: Wed May 24 20:30:47 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Wed May 24 20:30:47 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=f1cc8242

snippets/ebuild-mode: add python_gen_cond_dep.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/python_gen_cond_dep.yas | 28 
 1 file changed, 28 insertions(+)

diff --git a/snippets/ebuild-mode/python_gen_cond_dep.yas 
b/snippets/ebuild-mode/python_gen_cond_dep.yas
new file mode 100644
index 000..a3c3bf5
--- /dev/null
+++ b/snippets/ebuild-mode/python_gen_cond_dep.yas
@@ -0,0 +1,28 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: python_gen_cond_dep
+# key: python_gen_cond_dep
+
+
+# --
+\$(python_gen_cond_dep '
+   $0
+')



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-21 Thread Maciej Barć
commit: ffa414fe0f101bccab4064f73313686a4aa5afa5
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun May 21 15:48:08 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun May 21 15:48:08 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=ffa414fe

snippets/ebuild-mode/sitefile.yas: escape variable expansion

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/sitefile.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/sitefile.yas 
b/snippets/ebuild-mode/sitefile.yas
index 858efd8..79eb7eb 100644
--- a/snippets/ebuild-mode/sitefile.yas
+++ b/snippets/ebuild-mode/sitefile.yas
@@ -23,4 +23,4 @@
 
 
 # --
-SITEFILE="50${PN}-gentoo.el"
+SITEFILE="50\${PN}-gentoo.el"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-05-21 Thread Maciej Barć
commit: 9a56f79360bc8030187663b80d576185ed3f7fec
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun May 21 15:45:33 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun May 21 15:45:33 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=9a56f793

snippets/ebuild-mode: add sitefile.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/sitefile.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/sitefile.yas 
b/snippets/ebuild-mode/sitefile.yas
new file mode 100644
index 000..858efd8
--- /dev/null
+++ b/snippets/ebuild-mode/sitefile.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: sitefile
+# key: sitefile=
+
+
+# --
+SITEFILE="50${PN}-gentoo.el"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-04-25 Thread Maciej Barć
commit: 1a77d90d0488b4ceb486ef0627e6133fafd13c13
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Apr 25 19:48:17 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Apr 25 19:48:17 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=1a77d90d

Eldev: add autoloads plugin

Signed-off-by: Maciej Barć  gentoo.org>

 Eldev | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Eldev b/Eldev
index 0a6841f..0404bba 100644
--- a/Eldev
+++ b/Eldev
@@ -2,8 +2,9 @@
 
 (eldev-use-package-archive 'melpa)
 
-(setf eldev-project-main-file
-  "ebuild-snippets.el")
+(eldev-use-plugin 'autoloads)
+
+(setf eldev-project-main-file "ebuild-snippets.el")
 
 (setf eldev-files-to-package
   `(:or ,eldev-files-to-package '("snippets")))



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-04-25 Thread Maciej Barć
commit: 1687c98242be9d9a99b5605baca717c66969da5a
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Apr 25 15:16:03 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Apr 25 15:16:03 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=1687c982

README.md: add gitlab link

Signed-off-by: Maciej Barć  gentoo.org>

 README.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/README.md b/README.md
index 5f3c346..6910907 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,9 @@ make eldev-install
 Upstream can be found on the Gentoo official GitWeb:
 https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/
 
+There is also a mirror on the Gentoo GitLab:
+https://gitlab.gentoo.org/emacs/emacs-ebuild-snippets/
+
 ## License
 
 Copyright (c) 2023 Gentoo Authors



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-04-25 Thread Maciej Barć
commit: a8eb48067f7ac690431d3d149af589060f8f1a92
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Apr 25 15:16:53 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Apr 25 15:16:53 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=a8eb4806

remove Cask

Signed-off-by: Maciej Barć  gentoo.org>

 Cask | 8 
 1 file changed, 8 deletions(-)

diff --git a/Cask b/Cask
deleted file mode 100644
index d68e16c..000
--- a/Cask
+++ /dev/null
@@ -1,8 +0,0 @@
-(source melpa)
-
-(package-file "ebuild-snippets.el")
-
-(files "ebuild-snippets.el"
-   "snippets")
-
-(development (depends-on "yasnippet"))



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-25 Thread Maciej Barć
commit: 5fce788eddaf683d4a889cb3b1cef2e6dd7467c0
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun Mar 26 00:26:48 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun Mar 26 00:26:48 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=5fce788e

bump to 2.0.4

Signed-off-by: Maciej Barć  gentoo.org>

 ebuild-snippets.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index ffdb491..1985522 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -21,7 +21,7 @@
 
 ;; Authors: Maciej Barć 
 ;; Created: 27 Feb 2023
-;; Version: 2.0.3
+;; Version: 2.0.4
 ;; Keywords: languages
 ;; Homepage: https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git
 ;; Package-Requires: ((emacs "24"))
@@ -49,7 +49,7 @@
 (require 'yasnippet)
 
 
-(defconst ebuild-snippets-version "2.0.3"
+(defconst ebuild-snippets-version "2.0.4"
   "Ebuild-Snippets version.")
 
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-25 Thread Maciej Barć
commit: 94191cb76ecc468a105b2176bf8813fc1f836e48
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun Mar 26 00:25:50 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun Mar 26 00:25:50 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=94191cb7

bump to 2.0.3

Signed-off-by: Maciej Barć  gentoo.org>

 ebuild-snippets.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index 004b893..ffdb491 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -21,7 +21,7 @@
 
 ;; Authors: Maciej Barć 
 ;; Created: 27 Feb 2023
-;; Version: 2.0.2
+;; Version: 2.0.3
 ;; Keywords: languages
 ;; Homepage: https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git
 ;; Package-Requires: ((emacs "24"))



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-25 Thread Maciej Barć
commit: c744081844c86c524a511dde27adcd2a79b2bb03
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun Mar 26 00:24:30 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun Mar 26 00:24:30 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=c7440818

bump to 2.0.3

Signed-off-by: Maciej Barć  gentoo.org>

 ebuild-snippets.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-snippets.el b/ebuild-snippets.el
index 5b56bef..004b893 100644
--- a/ebuild-snippets.el
+++ b/ebuild-snippets.el
@@ -49,7 +49,7 @@
 (require 'yasnippet)
 
 
-(defconst ebuild-snippets-version "2.0.2"
+(defconst ebuild-snippets-version "2.0.3"
   "Ebuild-Snippets version.")
 
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-25 Thread Maciej Barć
commit: 16caabaec4235c1190cc1d977425075c799bf5ff
Author: Maciej Barć  gentoo  org>
AuthorDate: Sat Mar 25 20:01:31 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sat Mar 25 20:01:31 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=16caabae

ebuild-mode/patches.yas: escape special syntax

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/patches.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/patches.yas b/snippets/ebuild-mode/patches.yas
index ce54248..5a5431c 100644
--- a/snippets/ebuild-mode/patches.yas
+++ b/snippets/ebuild-mode/patches.yas
@@ -23,4 +23,4 @@
 
 
 # --
-PATCHES=( "${FILESDIR}"/$1 $0 )
+PATCHES=( "\${FILESDIR}"/$1 $0 )



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-25 Thread Maciej Barć
commit: a73091655d070b849f8ff308319346da6972ef62
Author: Maciej Barć  gentoo  org>
AuthorDate: Sat Mar 25 20:00:21 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sat Mar 25 20:00:21 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=a7309165

ebuild-mode/ebuild.yas: escape special syntax

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/ebuild.yas | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas
index 1c16d3e..27dbf3e 100644
--- a/snippets/ebuild-mode/ebuild.yas
+++ b/snippets/ebuild-mode/ebuild.yas
@@ -35,8 +35,8 @@ if [[ \${PV} == ** ]] ; then
inherit git-r3
EGIT_REPO_URI="$3.git"
 else
-   SRC_URI="$3/archive/${PV}.tar.gz
-   -> ${P}.tar.gz"
+   SRC_URI="$3/archive/\${PV}.tar.gz
+   -> \${P}.tar.gz"
KEYWORDS="${4:~amd64 ~x86}"
 fi
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-14 Thread Maciej Barć
commit: f4835a3b649065283fd2a098bc237c7406ed3afd
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Mar 14 23:12:03 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Mar 14 23:12:03 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=f4835a3b

emake.yas: escape special syntax

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/emake.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/emake.yas b/snippets/ebuild-mode/emake.yas
index f470eb9..2f35b3a 100644
--- a/snippets/ebuild-mode/emake.yas
+++ b/snippets/ebuild-mode/emake.yas
@@ -26,4 +26,4 @@
 local -a mymakeargs=(
$0
 )
-emake "${mymakeargs[@]}"
+emake "\${mymakeargs[@]}"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-14 Thread Maciej Barć
commit: acf19e0558efc743c23dc85c28ddc8f051bfe251
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Mar 14 23:12:34 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Mar 14 23:12:34 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=acf19e05

econf.yas: escape special syntax

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/econf.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/econf.yas b/snippets/ebuild-mode/econf.yas
index 5e7cba7..959fd40 100644
--- a/snippets/ebuild-mode/econf.yas
+++ b/snippets/ebuild-mode/econf.yas
@@ -26,4 +26,4 @@
 local -a myconf=(
$0
 )
-econf "${myconf[@]}"
+econf "\${myconf[@]}"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-14 Thread Maciej Barć
commit: 2116f7e580af56dad18753381516bd29276a7280
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Mar 14 20:44:35 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Mar 14 20:44:35 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=2116f7e5

README.md: reword the "User" section

Signed-off-by: Maciej Barć  gentoo.org>

 README.md | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index aca7562..5f3c346 100644
--- a/README.md
+++ b/README.md
@@ -15,8 +15,10 @@ emerge app-emacs/emacs-ebuild-snippets
 
 ### User
 
-If you want to install this package under your user only then you have to use
-the Eldev tool or manually copy the `snippets` directory.
+If you want to install this package under your current user only, then you
+have to use the [Eldev](https://github.com/doublep/eldev/) tool or manually
+copy the `snippets` directory to the location where you installed
+`ebuild-snippets.el`.
 
 ``` shell
 make eldev-install



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-14 Thread Maciej Barć
commit: 694dd977f189ba5028b301411eea9eb56fb0c71c
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Mar 14 20:41:00 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Mar 14 20:41:00 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=694dd977

README.md: add README.md

Signed-off-by: Maciej Barć  gentoo.org>

 README.md | 36 
 1 file changed, 36 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 000..aca7562
--- /dev/null
+++ b/README.md
@@ -0,0 +1,36 @@
+# Emacs-Ebuild-Snippets
+
+Yasnippets for editing Ebuilds, Eclasses and Gentoo package metadata.
+
+## Installation
+
+### System
+
+If you are on Gentoo Linux, then just emerge
+`app-emacs/emacs-ebuild-snippets`.
+
+``` shell
+emerge app-emacs/emacs-ebuild-snippets
+```
+
+### User
+
+If you want to install this package under your user only then you have to use
+the Eldev tool or manually copy the `snippets` directory.
+
+``` shell
+make eldev-install
+```
+
+## Upstream
+
+Upstream can be found on the Gentoo official GitWeb:
+https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/
+
+## License
+
+Copyright (c) 2023 Gentoo Authors
+
+Licensed under the GNU GPL v2 License
+
+SPDX-License-Identifier: GPL-2.0-or-later



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: /

2023-03-14 Thread Maciej Barć
commit: 228b2c051a9db004ca03dffc36500893502c94ee
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue Mar 14 20:35:12 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Tue Mar 14 20:35:12 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=228b2c05

Makefile: add eldev-install

Signed-off-by: Maciej Barć  gentoo.org>

 Makefile | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index e2b7514..9d46c46 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ ELCS = $(ELS:.el=.elc)
 
 EMACS   := emacs
 RM  := rm -f
+SH  := sh
 
 EMACFLAGS   := --batch -q --no-site-file -L $(PWD)
 EMACSCMD = $(EMACS) $(EMACFLAGS)
@@ -27,3 +28,9 @@ compile-snippets:
 .PHONY: compile
 compile: $(ELCS)
 compile: compile-snippets
+
+.PHONY: eldev-install
+eldev-install:
+   $(MAKE) -B clean
+   $(MAKE) -B $(ELCS)
+   $(SH) $(PWD)/scripts/eldev-install.sh



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-13 Thread Maciej Barć
commit: 721e17a855d3039ed0e60fbb7c85405a6388e941
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Mar 13 15:47:08 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Mar 13 15:47:08 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=721e17a8

snippets/ebuild-mode: add patches.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/patches.yas | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/snippets/ebuild-mode/patches.yas b/snippets/ebuild-mode/patches.yas
new file mode 100644
index 000..ce54248
--- /dev/null
+++ b/snippets/ebuild-mode/patches.yas
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: patches
+# key: patches=
+
+
+# --
+PATCHES=( "${FILESDIR}"/$1 $0 )



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-13 Thread Maciej Barć
commit: ee838aec914db3771a4ad51b72894bd4e69ace37
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Mar 13 15:45:15 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Mar 13 15:45:15 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=ee838aec

snippets/ebuild-mode: add emake.yas

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/emake.yas | 29 +
 1 file changed, 29 insertions(+)

diff --git a/snippets/ebuild-mode/emake.yas b/snippets/ebuild-mode/emake.yas
new file mode 100644
index 000..f470eb9
--- /dev/null
+++ b/snippets/ebuild-mode/emake.yas
@@ -0,0 +1,29 @@
+# -*- mode: snippet; indent-tabs-mode: t; -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs.  If not, see .
+
+
+# name: emake
+# key: emake
+
+
+# --
+local -a mymakeargs=(
+   $0
+)
+emake "${mymakeargs[@]}"



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-13 Thread Maciej Barć
commit: 7def7124bd5d9e976f09a0251c0cef3b6d7a1489
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Mar 13 15:43:41 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Mar 13 15:43:41 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=7def7124

cmake_src_configure.yas: array with -a

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/cmake_src_configure.yas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/ebuild-mode/cmake_src_configure.yas 
b/snippets/ebuild-mode/cmake_src_configure.yas
index 49117fa..139947d 100644
--- a/snippets/ebuild-mode/cmake_src_configure.yas
+++ b/snippets/ebuild-mode/cmake_src_configure.yas
@@ -23,7 +23,7 @@
 
 
 # --
-local mycmakeargs=(
+local -a mycmakeargs=(
$0
 )
 cmake_src_configure



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-13 Thread Maciej Barć
commit: 6116db998e5239605bf659f883186dd6ff749f94
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Mar 13 19:46:09 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Mar 13 19:46:09 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=6116db99

ebuild.yas: add SRC corrections; unquoite PV

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/ebuild.yas | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas
index 5823db8..1c16d3e 100644
--- a/snippets/ebuild-mode/ebuild.yas
+++ b/snippets/ebuild-mode/ebuild.yas
@@ -31,11 +31,12 @@ EAPI=${1:8}
 DESCRIPTION="$2"
 HOMEPAGE="$3"
 
-if [[ "\${PV}" == ** ]] ; then
+if [[ \${PV} == ** ]] ; then
inherit git-r3
-   EGIT_REPO_URI="$3"
+   EGIT_REPO_URI="$3.git"
 else
-   SRC_URI="$3"
+   SRC_URI="$3/archive/${PV}.tar.gz
+   -> ${P}.tar.gz"
KEYWORDS="${4:~amd64 ~x86}"
 fi
 



[gentoo-commits] proj/emacs-ebuild-snippets:master commit in: snippets/ebuild-mode/

2023-03-13 Thread Maciej Barć
commit: 8fde9850e22c2a410e36bb2511ee3138941e2233
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Mar 13 15:48:33 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Mar 13 15:48:33 2023 +
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=8fde9850

snippets/ebuild-mode: change assignment key

Signed-off-by: Maciej Barć  gentoo.org>

 snippets/ebuild-mode/docs.yas | 2 +-
 snippets/ebuild-mode/eapi.yas | 2 +-
 snippets/ebuild-mode/restrict.yas | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/snippets/ebuild-mode/docs.yas b/snippets/ebuild-mode/docs.yas
index 57da0c0..160482d 100644
--- a/snippets/ebuild-mode/docs.yas
+++ b/snippets/ebuild-mode/docs.yas
@@ -19,7 +19,7 @@
 
 
 # name: docs
-# key: docs
+# key: docs=
 
 
 # --

diff --git a/snippets/ebuild-mode/eapi.yas b/snippets/ebuild-mode/eapi.yas
index efeb533..d9fec7e 100644
--- a/snippets/ebuild-mode/eapi.yas
+++ b/snippets/ebuild-mode/eapi.yas
@@ -19,7 +19,7 @@
 
 
 # name: eapi
-# key: eapi
+# key: eapi=
 
 
 # --

diff --git a/snippets/ebuild-mode/restrict.yas 
b/snippets/ebuild-mode/restrict.yas
index 92ab319..5a73b3b 100644
--- a/snippets/ebuild-mode/restrict.yas
+++ b/snippets/ebuild-mode/restrict.yas
@@ -19,7 +19,7 @@
 
 
 # name: restrict
-# key: restrict
+# key: restrict=
 
 
 # --