mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+libxml2 (#63)
This commit is contained in:
parent
f13750bb50
commit
20342be4de
2 changed files with 31 additions and 0 deletions
22
projects/gnome.org/libxml2/package.yml
Normal file
22
projects/gnome.org/libxml2/package.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
distributable:
|
||||
url: https://download.gnome.org/sources/libxml2/{{ version.major }}.{{ version.minor }}/libxml2-{{ version }}.tar.xz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: GNOME/libxml2/tags
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure --prefix={{prefix}}
|
||||
make --jobs {{ hw.concurrency }}
|
||||
make install
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc `xml2-config --cflags --libs` -o test {{ pkg.pantry-prefix }}/test.c
|
||||
./test
|
9
projects/gnome.org/libxml2/test.c
Normal file
9
projects/gnome.org/libxml2/test.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <libxml/tree.h>
|
||||
|
||||
int main() {
|
||||
xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0");
|
||||
xmlNodePtr root_node = xmlNewNode(NULL, BAD_CAST "root");
|
||||
xmlDocSetRootElement(doc, root_node);
|
||||
xmlFreeDoc(doc);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue