aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* newmetadata: Don't add python@ to dev-python/* by defaultMichał Górny2022-01-261-2/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gentoo-common: wrap file around <=80 colsgentoo-syntax-20211210Vadim Misbakh-Soloviov2021-12-101-6/+16
| | | | Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* gentoo-common: try to load pythons from python-exec.confVadim Misbakh-Soloviov2021-12-101-2/+26
| | | | Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* gentoo-common: Call python instead of eselect-pythongentoo-syntax-20211208Michał Górny2021-12-081-5/+1
| | | | | | | | | Call python (through python-exec) in order to determine the preferred value for PYTHON_COMPAT rather than using the obsolete eselect-python tool. Closes: https://github.com/gentoo/gentoo-syntax/issues/35 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Stop adding ~x86 on amd64gentoo-syntax-20211116Michał Górny2021-11-061-3/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Use signed tagsgentoo-syntax-20210911Mike Gilbert2021-09-111-1/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* newmetadata: use https in DOCTYPE URIMike Gilbert2021-09-111-2/+2
| | | | | Bug: https://bugs.gentoo.org/552720 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Update eclassdoc tagsgentoo-syntax-20210901Michał Górny2021-09-011-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newglep: Add empty line after copyright headingMichał Górny2021-08-281-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newglep: Update license to CC-BY-SA 4.0gentoo-syntax-20210828Michał Górny2021-08-281-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Add ${ECLASS} to unsupported EAPI errorMichał Górny2021-07-161-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Improve eclass boilerplategentoo-syntax-20210716Michał Górny2021-07-161-0/+11
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: Default to EAPI 8Michał Górny2021-07-161-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Add support for epytest & eunittest highlightinggentoo-syntax-20210428Michał Górny2021-04-281-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* add tags file to gitignoreFlorian Sowade2021-02-071-0/+2
| | | | | | | I use this plugin directly from the git repository without running make install. Generating the helptags for this plugin produces the file /doc/tags so I have local changes after generating the help tags. Adding the file to gitignore fixes the problem. Signed-off-by: Florian Sowade <f.sowade@r9e.de> Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* env and bashrc would benefit from ft=ebuildVadim Misbakh-Soloviov2021-02-071-0/+4
| | | | Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* repos.conf also uses ini-like syntaxVadim Misbakh-Soloviov2021-02-071-0/+4
| | | | Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* package.env also uses package.use-like syntaxVadim Misbakh-Soloviov2021-02-071-1/+1
| | | | Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
* Revert "make use and unuse highlights always red and green"gentoo-syntax-20201216Michał Górny2020-12-162-4/+4
| | | | | | | This does not work with people with different terminal color set. Reverts: 5cc93fd715b9d0c1d73adae904fde0767d4671a1 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Add trim for GentooGetUser()gentoo-syntax-20201007Freed-Wu2020-10-071-2/+2
| | | | | | Signed-off-by: 吴振宇 <Wuzy01@qq.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/31 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* make use and unuse highlights always red and greenCássio Ribeiro Alves de Ávila2020-10-052-4/+4
| | | | | | Signed-off-by: Cássio Ribeiro Alves de Ávila <cassioavila@yandex.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/32 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Fix error when executable('git') == 1Freed-Wu2020-06-051-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo-syntax/pull/30 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* use git config to get email and name of userFreed-Wu2020-06-041-5/+4
| | | | | Closes: https://github.com/gentoo/gentoo-syntax/pull/29 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plugin/gentoo-common.vim: Stop suggesting py2 in newebuildMichał Górny2020-03-081-7/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* newebuild: remove empty iuseMikle Kolyada2019-12-131-6/+0
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* syntax/ebuild.vim: Account for sphinx_compile_all properlygentoo-syntax-20200120Michał Górny2019-12-131-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Remove duplicate python_compile_allMichał Górny2019-12-131-1/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plugin/newmetadata.vim: Don't put longdescription in pkgMichał Górny2019-11-271-2/+0
| | | | | | | This frequently results in people leaving an empty element, or copying short description there. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Mark enewuser & enewgroup deprecatedgentoo-syntax-20191127Michał Górny2019-11-271-1/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* syntax/ebuild.vim: Add python_check_deps tooMichał Górny2019-11-271-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>