aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'snippets')
-rw-r--r--snippets/ebuild-mode/ebuild.yas50
-rw-r--r--snippets/ebuild-mode/inherit.yas26
-rw-r--r--snippets/ebuild-mode/pkg_config.yas29
-rw-r--r--snippets/ebuild-mode/pkg_postinst.yas29
-rw-r--r--snippets/ebuild-mode/pkg_preinst.yas29
-rw-r--r--snippets/ebuild-mode/pkg_pretend.yas29
-rw-r--r--snippets/ebuild-mode/pkg_setup.yas29
-rw-r--r--snippets/ebuild-mode/restrict.yas26
-rw-r--r--snippets/ebuild-mode/src_compile.yas29
-rw-r--r--snippets/ebuild-mode/src_configure.yas29
-rw-r--r--snippets/ebuild-mode/src_install.yas29
-rw-r--r--snippets/ebuild-mode/src_prepare.yas29
-rw-r--r--snippets/ebuild-mode/src_test.yas29
-rw-r--r--snippets/ebuild-mode/src_unpack.yas29
14 files changed, 421 insertions, 0 deletions
diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas
new file mode 100644
index 0000000..ffd294d
--- /dev/null
+++ b/snippets/ebuild-mode/ebuild.yas
@@ -0,0 +1,50 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: ebuild
+# key: /ebuild
+
+
+# --
+# Copyright 1999-`(format-time-string "%Y")` Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=${1:8}
+
+DESCRIPTION="$2"
+HOMEPAGE="$3"
+
+if [[ "\${PV}" == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="$3"
+else
+ SRC_URI="$3"
+ KEYWORDS="${4:~amd64 ~x86}"
+fi
+
+LICENSE="$5"
+SLOT="0"
+IUSE="$6"
+
+RDEPEND="$7"
+BDEPEND="
+ \${RDEPEND}
+ $8
+" \ No newline at end of file
diff --git a/snippets/ebuild-mode/inherit.yas b/snippets/ebuild-mode/inherit.yas
new file mode 100644
index 0000000..a34dd99
--- /dev/null
+++ b/snippets/ebuild-mode/inherit.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 <http://www.gnu.org/licenses/>.
+
+
+# name: inherit
+# key: inherit
+
+
+# --
+inherit $0
diff --git a/snippets/ebuild-mode/pkg_config.yas b/snippets/ebuild-mode/pkg_config.yas
new file mode 100644
index 0000000..2fd7e34
--- /dev/null
+++ b/snippets/ebuild-mode/pkg_config.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: pkg_config
+# key: pkg_config
+
+
+# --
+pkg_config() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/pkg_postinst.yas b/snippets/ebuild-mode/pkg_postinst.yas
new file mode 100644
index 0000000..c601e29
--- /dev/null
+++ b/snippets/ebuild-mode/pkg_postinst.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: pkg_postinst
+# key: pkg_postinst
+
+
+# --
+pkg_postinst() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/pkg_preinst.yas b/snippets/ebuild-mode/pkg_preinst.yas
new file mode 100644
index 0000000..057ae6b
--- /dev/null
+++ b/snippets/ebuild-mode/pkg_preinst.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: pkg_preinst
+# key: pkg_preinst
+
+
+# --
+pkg_preinst() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/pkg_pretend.yas b/snippets/ebuild-mode/pkg_pretend.yas
new file mode 100644
index 0000000..ec72fe8
--- /dev/null
+++ b/snippets/ebuild-mode/pkg_pretend.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: pkg_pretend
+# key: pkg_pretend
+
+
+# --
+pkg_pretend() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/pkg_setup.yas b/snippets/ebuild-mode/pkg_setup.yas
new file mode 100644
index 0000000..050ec7b
--- /dev/null
+++ b/snippets/ebuild-mode/pkg_setup.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: pkg_setup
+# key: pkg_setup
+
+
+# --
+pkg_setup() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/restrict.yas b/snippets/ebuild-mode/restrict.yas
new file mode 100644
index 0000000..92ab319
--- /dev/null
+++ b/snippets/ebuild-mode/restrict.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 <http://www.gnu.org/licenses/>.
+
+
+# name: restrict
+# key: restrict
+
+
+# --
+RESTRICT="${1:!test? ( test )}"
diff --git a/snippets/ebuild-mode/src_compile.yas b/snippets/ebuild-mode/src_compile.yas
new file mode 100644
index 0000000..4bb67e6
--- /dev/null
+++ b/snippets/ebuild-mode/src_compile.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_compile
+# key: src_compile
+
+
+# --
+src_compile() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/src_configure.yas b/snippets/ebuild-mode/src_configure.yas
new file mode 100644
index 0000000..5acf46e
--- /dev/null
+++ b/snippets/ebuild-mode/src_configure.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_configure
+# key: src_configure
+
+
+# --
+src_configure() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/src_install.yas b/snippets/ebuild-mode/src_install.yas
new file mode 100644
index 0000000..727dee5
--- /dev/null
+++ b/snippets/ebuild-mode/src_install.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_install
+# key: src_install
+
+
+# --
+src_install() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/src_prepare.yas b/snippets/ebuild-mode/src_prepare.yas
new file mode 100644
index 0000000..92a5dba
--- /dev/null
+++ b/snippets/ebuild-mode/src_prepare.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_prepare
+# key: src_prepare
+
+
+# --
+src_prepare() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/src_test.yas b/snippets/ebuild-mode/src_test.yas
new file mode 100644
index 0000000..96d56b8
--- /dev/null
+++ b/snippets/ebuild-mode/src_test.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_test
+# key: src_test
+
+
+# --
+src_test() {
+ ${1:default}
+ $2
+}
diff --git a/snippets/ebuild-mode/src_unpack.yas b/snippets/ebuild-mode/src_unpack.yas
new file mode 100644
index 0000000..1dfd3ed
--- /dev/null
+++ b/snippets/ebuild-mode/src_unpack.yas
@@ -0,0 +1,29 @@
+# -*- 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 <http://www.gnu.org/licenses/>.
+
+
+# name: src_unpack
+# key: src_unpack
+
+
+# --
+src_unpack() {
+ ${1:default}
+ $2
+}