aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Forcefully unset b:current_syntaxHEADv14masterTK052024-03-297-7/+7
| | | | | Closes: https://github.com/gentoo/gentoo-syntax/pull/65 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: default jdk and jre values for DEPEND and RDEPENDv13Volkmar W. Pogatzki2023-12-271-12/+2
| | | | | | | | | We partly revert commit #0938bf9012 which would have caused unnecessary work whenever ::gentoo gets a new Java version. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo-syntax/pull/64 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: default jdk and jre values for DEPEND and RDEPENDv12Volkmar W. Pogatzki2023-11-021-4/+14
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo-syntax/pull/63 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add eqawarnv11Paul Zander2023-06-141-1/+1
| | | | | Closes: https://github.com/gentoo/gentoo-syntax/pull/62 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Default to hatchling for Python ebuildsMichał Górny2023-06-141-1/+1
| | | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/61 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Add empty line between PYTHON block and inheritMichał Górny2023-06-141-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newmetadata: Put <stabilize-allarches/> for Python by defaultMichał Górny2023-06-141-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newmetadata: Add python@ by default, with a warning on testsMichał Górny2023-06-141-0/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Default to pypi.eclass for Python packagesMichał Górny2023-06-141-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Explode RDEPEND by defaultMichał Górny2023-06-141-1/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: more defaults to java-pkg-simplev10Volkmar W. Pogatzki2023-03-151-1/+4
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo-syntax/pull/59 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Do not use *.zip SRC_URI in dev-java ebuild templateYuan Liao2023-03-141-1/+1
| | | | | | | | | | | | | | Many Java packages' source archives are available in tarball formats like .tar.gz already, and tarballs are more preferable than Zip archives for SRC_URI (pkgcheck has a check for this). However, instead of replacing '.zip' with '.tar.gz', it could be better to just leave the value of SRC_URI in the template empty, just like in the dev-python ebuild template. Signed-off-by: Yuan Liao <liaoyuan@gmail.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/58 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Add MAVEN_ID to dev-java ebuild templateYuan Liao2023-03-141-0/+1
| | | | | | | | | | | | | | | | Java ebuilds in Gentoo often contain a MAVEN_ID variable. Although no eclasses use this variable yet, some Java ebuild tools, like java-ebuilder, recognize this variable and use its value to establish an ebuild-to-Maven artifact mapping. Human maintainers may also use 'grep' to search for an ebuild with a certain MAVEN_ID for finding out if an ebuild for a certain Maven artifact already exists. The MAVEN_ID variable in the dev-java ebuild template acts as a reminder for Java ebuild authors to record the Maven artifact for the ebuild they create when applicable. Signed-off-by: Yuan Liao <liaoyuan@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Drop support for Gentoo style ChaneLogsv9Anna Vyalkova2023-03-114-90/+7
| | | | | | | | They haven't been used anywhere for ages. Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/57 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* glep: loosen email regexpAnna Vyalkova2023-03-111-1/+1
| | | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/56 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-package-common: loosen email regexpAnna Vyalkova2023-03-111-1/+1
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add support for check-reqs.eclassv8Patrick McLean2023-03-091-1/+6
| | | | | | Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/55 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add support for udev.eclassPatrick McLean2023-03-091-1/+6
| | | | | Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add support for tmpfiles.eclassPatrick McLean2023-03-091-1/+5
| | | | | Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add support for cmake.eclassPatrick McLean2023-03-091-0/+8
| | | | | Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add dostrip, ver_cut, ver_rs, ver_testPatrick McLean2023-03-091-0/+1
| | | | | Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Enable syntax detection for make.conf as a directoryv7Richard-Rogalski2023-02-081-1/+1
| | | | | | | | | Technically, make.conf can be a directory, and I use it as one :). Niche use case but works \o/ Signed-off-by: Richard Rogalski <rrogalski@tutanota.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/54 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pkgcheck: add new ALE linterv6Anna Vyalkova2023-02-013-2/+82
| | | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/52 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plugin/newebuild.vim: adjust dev-java templatev5Volkmar W. Pogatzki2023-02-011-4/+4
| | | | | | | | | Add missing slot operators in >=virtual/jdk-1.8:* and >=virtual/jre-1.8:* Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo-syntax/pull/49 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/gentoo-make-conf: Awareness of a few more variablesSergey Alirzaev2023-02-011-1/+1
| | | | | | | | | | PORTAGE_SCHEDULING_POLICY BINPKG_COMPRESS BINPKG_COMPRESS_FLAGS Signed-off-by: Sergey Alirzaev <l29ah@riseup.net> Closes: https://github.com/gentoo/gentoo-syntax/pull/53 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Use standard clause for unsupported EAPI in new eclassesMichał Górny2023-01-021-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* GentooGetUser(): Drop --global option for git configv4Adrian2022-12-041-1/+1
| | | | | | | | | | | | | Omitting the --global option when obtaining git config values results in git returning the repo-local config option, if set, and the global value otherwise. This allows devs with a repo-specific git config (e.g. with an alternate E-Mail address for Gentoo-specific projects) to have the correct email address e.g. for creating metadata.xml retrieved automatically. Signed-off-by: Adrian Schollmeyer <git@nexadn.de> Closes: https://github.com/gentoo/gentoo-syntax/pull/50 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Fix tag rule for multiple existing tagsv3Michał Górny2022-07-131-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-common: fix "Undefined variable: git"Anna Vyalkova2022-07-131-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/842249 Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/47 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild: update eclassdoc syntaxAnna Vyalkova2022-07-131-4/+7
| | | | | | | | | * rename ECLASS-VARIABLE to ECLASS_VARIABLE * highlight tags that don't take a value Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/48 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* make.conf: add loong/~loong to recognized keywordsv2WANG Xuerui2022-05-021-2/+2
| | | | | | Signed-off-by: WANG Xuerui <xen0n@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/40 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: move EAPI guard outside inherit guardThomas Bracht Laumann Jespersen2022-05-021-4/+4
| | | | | | | | The convention is to put the EAPI guard before any inherit guards. Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo-syntax/pull/46 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: put inherit guard variable immediately after checkThomas Bracht Laumann Jespersen2022-05-021-1/+1
| | | | | | | | | For new eclasses, the provided template puts the variable at the end of the body, but the current preference is to assign the variable immediately after the check. Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Makefile: add a new "tag" targetMichał Górny2022-02-231-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Makefile: remove the old tagging logicv1Michał Górny2022-02-231-8/+0
| | | | | | We're moving away from date-tags and into incremental version numbers. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* README: add instructions for syntax checkerAnna Vyalkova2022-02-231-0/+18
| | | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/45 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* README: add "License" sectionAnna Vyalkova2022-02-231-0/+5
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ftdetect/gentoo.vim: set multiple file typesAnna “CyberTailor”2022-02-212-6/+6
| | | | | | | | | So basically Syntastic shell checks (most importantly "sh" and "checkbashisms") works for init.d, conf.d and env.d files now. Yay! Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/44 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pkgcheck: add new Syntastic checkerAnna “CyberTailor”2022-02-212-0/+53
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/gentoo-make-conf: add ALLOW_TESTgentoo-syntax-20220220Anna “CyberTailor”2022-02-201-1/+15
| | | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/43 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/gentoo-make-conf: don't skipwhite to `=`Anna “CyberTailor”2022-02-201-14/+14
| | | | | | | It is illegal in bash. Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/gentoo-make-conf: more known variablesAnna “CyberTailor”2022-02-201-2/+2
| | | | | | | | | | | | | | | New variables: * SIGNED_OFF_BY * PORTAGE_BINHOST_HEADER_URI * PORTAGE_BINPKG_FORMAT * PORTAGE_LOG_FILTER_FILE_CMD * CCACHE_SLOPPINESS Changes variables: * CHECKREQS_ACTION -> CHECKREQS_DONOTHING Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/gentoo-make-conf: highlight F(C)FLAGSAnna “CyberTailor”2022-02-201-1/+2
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgsgentoo-syntax-20220206Joonas Niilola2022-02-061-3/+9
| | | | | | | Closes: https://github.com/gentoo/gentoo-syntax/pull/41 Signed-off-by: Joonas Niilola <juippis@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/42 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-common: Use eval() more consistentlygentoo-syntax-20220203Michał Górny2022-02-031-6/+4
| | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/39
* gentoo-common: Simplify adding other implsMichał Górny2022-02-031-4/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-common: Remove unnecessary continueMichał Górny2022-02-031-1/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-common: Support collapsing PYTHON_COMPAT into {x..y}Michał Górny2022-02-031-7/+25
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newmetadata: Include pypi remote-idgentoo-syntax-20220126Michał Górny2022-01-261-0/+7
| | | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/38 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Modernize the Python templateMichał Górny2022-01-261-4/+19
| | | | | | | | | | | | | | | | | | | Use PEP517 build. It defaults to setuptools but the eclass will detect if this is incorrect. Add a default pypi HOMEPAGE based on the package name. Skip DEPEND. Python packages rarely need this class of dependencies, RDEPEND + BDEPEND are much more common. Add empty "test?" block in BDEPEND, as this is often necessary. If it is not, it is easy to yank it. Add distutils_enable_tests. It defaults to pytest, as the most common variant. It will also trigger explicit failure if the package has no tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>