diff --git a/projects/ctags.io/package.yml b/projects/ctags.io/package.yml new file mode 100644 index 00000000..90dc14ff --- /dev/null +++ b/projects/ctags.io/package.yml @@ -0,0 +1,38 @@ +distributable: + url: https://github.com/universal-ctags/ctags/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: universal-ctags/ctags + +dependencies: + digip.org/jansson: ^2 + pyyaml.org/libyaml: ^0.2 + pcre.org/v2: ^10 + gnome.org/libxml2: ^2 + +build: + dependencies: + gnu.org/autoconf: '*' + gnu.org/automake: '*' + docutils.org: '*' + python.org: '>=3.11' + script: + - ./autogen.sh + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install + env: + ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix={{prefix}} + - --libdir={{prefix}}/lib + +provides: + - bin/ctags + +test: + - ctags -R . + - cat tags | grep 'test.c' + - ctags --version | grep {{version}} \ No newline at end of file diff --git a/projects/ctags.io/test.c b/projects/ctags.io/test.c new file mode 100644 index 00000000..b6ab6377 --- /dev/null +++ b/projects/ctags.io/test.c @@ -0,0 +1,13 @@ +#include +#include + +void func() +{ + printf("Hello World!"); +} + +int main() +{ + func(); + return 0; +} \ No newline at end of file