[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: 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: 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: 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: 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=
 
 
 # --