mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+autoconf-archive (#2443)
This commit is contained in:
parent
d851fed0fa
commit
776e97fb5d
2 changed files with 50 additions and 0 deletions
38
projects/gnu.org/autoconf-archive/package.yml
Normal file
38
projects/gnu.org/autoconf-archive/package.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
distributable:
|
||||||
|
url: https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-{{ version.raw }}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
url: https://ftp.gnu.org/gnu/autoconf-archive/
|
||||||
|
match: /autoconf-archive-(\d+\.\d+(\.\d+)?)\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /autoconf-archive-/
|
||||||
|
- /.tar.xz/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script:
|
||||||
|
- ./configure --prefix="{{ prefix }}"
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
gnu.org/autoconf: '*'
|
||||||
|
script:
|
||||||
|
- echo $TESTM4 >test.m4
|
||||||
|
- autoconf test.m4
|
||||||
|
env:
|
||||||
|
TESTM4: |
|
||||||
|
AC_INIT(myconfig, version-0.1)
|
||||||
|
AC_MSG_NOTICE([Hello, world.])
|
||||||
|
|
||||||
|
m4_include([{{prefix}}/share/aclocal/ax_have_select.m4])
|
||||||
|
|
||||||
|
# from https://www.gnu.org/software/autoconf-archive/ax_have_select.html
|
||||||
|
AX_HAVE_SELECT(
|
||||||
|
[AX_CONFIG_FEATURE_ENABLE(select)],
|
||||||
|
[AX_CONFIG_FEATURE_DISABLE(select)])
|
||||||
|
AX_CONFIG_FEATURE(
|
||||||
|
[select], [This platform supports select(7)],
|
||||||
|
[HAVE_SELECT], [This platform supports select(7).])
|
12
projects/gnu.org/autoconf-archive/test.m4
Normal file
12
projects/gnu.org/autoconf-archive/test.m4
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
AC_INIT(myconfig, version-0.1)
|
||||||
|
AC_MSG_NOTICE([Hello, world.])
|
||||||
|
|
||||||
|
m4_include([ax_have_select.m4])
|
||||||
|
|
||||||
|
# from https://www.gnu.org/software/autoconf-archive/ax_have_select.html
|
||||||
|
AX_HAVE_SELECT(
|
||||||
|
[AX_CONFIG_FEATURE_ENABLE(select)],
|
||||||
|
[AX_CONFIG_FEATURE_DISABLE(select)])
|
||||||
|
AX_CONFIG_FEATURE(
|
||||||
|
[select], [This platform supports select(7)],
|
||||||
|
[HAVE_SELECT], [This platform supports select(7).])
|
Loading…
Reference in a new issue