From ced302b84cbbaf05efd057e57dd0576e90e9b643 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Sun, 10 Mar 2024 20:25:23 +0200 Subject: [PATCH] new file: projects/ctags.io/package.yml new file: projects/ctags.io/test.c --- projects/ctags.io/package.yml | 38 +++++++++++++++++++++++++++++++++++ projects/ctags.io/test.c | 13 ++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 projects/ctags.io/package.yml create mode 100644 projects/ctags.io/test.c 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