diff options
Diffstat (limited to 'repo/devel')
-rw-r--r-- | repo/devel/docbook4-xml.xibuild | 86 | ||||
-rw-r--r-- | repo/devel/rustc.xibuild | 93 |
2 files changed, 179 insertions, 0 deletions
diff --git a/repo/devel/docbook4-xml.xibuild b/repo/devel/docbook4-xml.xibuild new file mode 100644 index 0000000..2d65abd --- /dev/null +++ b/repo/devel/docbook4-xml.xibuild @@ -0,0 +1,86 @@ +#!/bin/bash + +MAKEDEPS=(unzip) +DEPS=(libxml2 sgml-common) + +PKG_VER=4.5 +SOURCE=https://www.docbook.org/xml/$PKG_VER/docbook-xml-$PKG_VER.zip +DESC="A widely used XML scheme for writing documentation and help" + +package () { + install -v -d -m755 $PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5 && + install -v -d -m755 $PKG_DEST/etc/xml && + chown -R root:root . && + cp -v -af docbook.cat *.dtd ent/ *.mod \ + $PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5 + + + if [ ! -e $PKG_DEST/etc/xml/docbook ]; then + xmlcatalog --noout --create $PKG_DEST/etc/xml/docbook + fi && + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML V4.5//EN" \ + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + $PKG_DEST/etc/xml/docbook && + xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + $PKG_DEST/etc/xml/docbook + + if [ ! -e $PKG_DEST/etc/xml/catalog ]; then + xmlcatalog --noout --create $PKG_DEST/etc/xml/catalog + fi && + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file:///etc/xml/docbook" \ + $PKG_DEST/etc/xml/catalog && + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file:///etc/xml/docbook" \ + $PKG_DEST/etc/xml/catalog && + xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + $PKG_DEST/etc/xml/catalog && + xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + $PKG_DEST/etc/xml/catalog + +} diff --git a/repo/devel/rustc.xibuild b/repo/devel/rustc.xibuild new file mode 100644 index 0000000..21002e0 --- /dev/null +++ b/repo/devel/rustc.xibuild @@ -0,0 +1,93 @@ +#!/bin/bash + +MAKEDEPS=(cmake ) +DEPS=(curl gcc libssh2) + +PKG_VER=1.58.1 +SOURCE=https://static.rust-lang.org/dist/rustc-$PKG_VER-src.tar.gz +DESC="Systems programming language focused on safety, speed and concurrency" + +prepare () { + mkdir $PKG_DEST/opt/rustc-$PKG_VER && + ln -svfin rustc-$PKG_VER $PKG_DEST/opt/rustc + + cat << EOF > config.toml +# see config.toml.example for more possible options +# See the 8.4 book for an example using shipped LLVM +# e.g. if not installing clang, or using a version before 10.0 +[llvm] +# by default, rust will build for a myriad of architectures +targets = "X86" + +# When using system llvm prefer shared libraries +link-shared = true + +[build] +# omit docs to save time and space (default is to build them) +docs = false + +# install cargo as well as rust +extended = true + +[install] +prefix = "/opt/rustc-1.58.1" +docdir = "share/doc/rustc-1.58.1" + +[rust] +channel = "stable" +rpath = false + +# BLFS does not install the FileCheck executable from llvm, +# so disable codegen tests +codegen-tests = false + +[target.x86_64-unknown-linux-gnu] +# NB the output of llvm-config (i.e. help options) may be +# dumped to the screen when config.toml is parsed. +llvm-config = "/usr/bin/llvm-config" + +[target.i686-unknown-linux-gnu] +# NB the output of llvm-config (i.e. help options) may be +# dumped to the screen when config.toml is parsed. +llvm-config = "/usr/bin/llvm-config" + + +EOF + +} + +build () { + export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" && + python3 ./x.py build --exclude src/tools/miri + +} + +package () { + export LIBSSH2_SYS_USE_PKG_CONFIG=1 && + DESTDIR=${PWD}/install python3 ./x.py install && + unset LIBSSH2_SYS_USE_PKG_CONFIG + + chown -R root:root install && + cp -a install/* $PKG_DEST + + mkdir -pv $PKG_DEST/etc/profile.d/ + cat > $PKG_DEST/etc/profile.d/rustc.sh << "EOF" +# Begin /etc/profile.d/rustc.sh + +pathprepend /opt/rustc/bin PATH + +# End /etc/profile.d/rustc.sh +EOF +} + +postinstall () { +cat >> /etc/ld.so.conf << EOF +# Begin rustc addition + +/opt/rustc/lib + +# End rustc addition +EOF + +ldconfig +} |