pantry/projects/x.org/xtrans/package.yml
Jacob Heider d7adf09a43
replace hardcoded versions (mostly) (#1733)
* update(slirp)

* update(poppler-data)

* update(doxygen)

* update(xcb)

* update(sm)

* update(xdmcp)

* update(ice)

* update(util-macros)

* update(xtrans)

* update(xmu)

* update(xt)

* update(xau)

* update(xrender)

* update(x11)

* update(xcb-proto)

* update(xpm)

* update(xaw)

* update(xorg-protocol)

* update(exts)

* update(lame)

* update(nmap)

* update(cairo)

* update(unicode)

* update(gts)

* update(vim)

* update(libtiff)

* update(lua)

* comment(bpb)

* update(giflib)

* update(gdk-pixbuf)

* update(gobj-intro)

* update(libcap2)

* update(gnuplot)

* update(dav1d)

* update(wumpus)

* update(librist)

* update(subversion)

* comment(jbig2dec)

* update(moreutils)

* update(eigen)

* update(ogg)

* update(musl)

* update(libtool)

* update(isl)

* update(coreutils)

* update(wget)

* update(gmp)

* update(libiconv)

* update(stow)

* update(sed)

* update(gperf)

* update(libunistring)

* update(grep)

* update(patch)

* update(tar)

* update(autoconf)

* update(libgpg-error)

* update(automake)

* update(libksba)

* update(npth)

* update(libgcrypt)

* update(libidn)

* update(libassuan)

* update(gnupg)

* update(libtasn1)

* update(ncdu)

* update(freexl)

* update(nasm)

* update(ffmpeg)

* update(libsodium)

* update(mpg123)

* update(freetype)

* update(dnsmasq)

* update(postgres)

* update(xz)

* update(docutils)

* update(aom)

* update(libssh)

* update(gitlab-cli)

* update(watch)

* update(tree)

* update(c-ares)

* update(mpdecimal)

* update(lzo)

* update(graphviz)

* update(nano)

* update(yasm)

* update(expect)

* update(pcre)

* update(file)

* update(shared-mime-info)

* use `gitlab:` builtin
2023-05-01 13:14:59 -04:00

48 lines
1.1 KiB
YAML

distributable:
url: https://www.x.org/archive/individual/lib/xtrans-{{ version.raw }}.tar.bz2
strip-components: 1
versions:
url: https://www.x.org/archive/individual/lib/
match: /xtrans-\d+\.\d+(\.\d+)?.tar.bz2/
strip:
- /xtrans-/
- /.tar.bz2/
dependencies:
x.org/protocol: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
x.org/util-macros: '*'
freedesktop.org/pkg-config: ~0.29
script: |
# otherwise X11 fails to build on all platforms we support at least lol
sed -i.bak 's|# include <sys/stropts.h>|# include <sys/ioctl.h>|g' Xtranslcl.c
./configure \
--prefix="{{prefix}}" \
--sysconfdir="$SHELF"/etc \
--localstatedir="$SHELF"/var \
--disable-debug \
--enable-docs=no
make
make install
env:
SHELF: ${{tea.prefix}}/x.org
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
mv $FIXTURE test.c
cc test.c
./a.out
fixture: |
#include "X11/Xtrans/Xtrans.h"
int main(int argc, char* argv[]) {
Xtransaddr addr;
return 0;
}