# pandoc/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarballs and/or components for this package are retri- eved from online during the first build, stored in the package itself, and reused in subsequent builds. The rules related to going online again are explained further down. This is one of a limited number of packages in this distro that is permitted to go online at build time. #--------------------------------------------------------------------- 2. If the environment variable "GHCOFFLINE" is set to "true" -- or to certain aliases for "true" such as "yes" -- the "pandoc" build pro- cedure doesn't go online. Instead, the package rebuilds itself using sources that existed, and were saved, at the time of the last online build. Presently, in this mode, the build procedure turns "dnsmasq" off auto- matically. #--------------------------------------------------------------------- 3. If "GHCOFFLINE" is set to something else, or is unset, the "pandoc" build procedure goes online. It downloads new "pandoc" sources, uses them, and stores them in the package itself. Presently, in this mode, the build procedure turns "dnsmasq" on auto- matically. #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] compiler = gcc # ghc 9.10 doesn't support newer clang configure = none defer = glibc64 license = tbd purge = no unpack = none setpaths = libgmp #--------------------------------------------------------------------- [depends] cabal ghc0910 libgmp numactl zlib #--------------------------------------------------------------------- [build] CABALNAME=pandoc-cli PATH=$PATH:$PRODTREE/cabal/bin:$PRODTREE/ghc0910/bin export LD=ld hash cabal && hash ghc cabal --version ghc --version PP=$PRODTREE/pandoc BINDIR=$PP/bin GHCHOME=$PP/ghchome BUILDBIN=$GHCHOME/.local/bin mkdir -p $BINDIR $GHCHOME OLDHOME=$HOME export HOME=$GHCHOME #--------------------------------------------------------------------- rm -fr $BINDIR/* rm -fr $BUILDBIN/ rm -fr $GHCHOME/.local/state/ mkdir -p $BUILDBIN/ mkdir -p $GHCHOME/.local/state/ #--------------------------------------------------------------------- if [ "@$GHCOFFLINE" == "@1" ]; then GHCOFFLINE=true ; fi if [ "@$GHCOFFLINE" == "@da" ]; then GHCOFFLINE=true ; fi if [ "@$GHCOFFLINE" == "@on" ]; then GHCOFFLINE=true ; fi if [ "@$GHCOFFLINE" == "@one" ]; then GHCOFFLINE=true ; fi if [ "@$GHCOFFLINE" == "@si" ]; then GHCOFFLINE=true ; fi if [ "@$GHCOFFLINE" == "@yes" ]; then GHCOFFLINE=true ; fi echo GHCOFFLINE=$GHCOFFLINE if [ "@$GHCOFFLINE" == "@true" ]; then echo Building offline killany dnsmasq || true else echo Building online service dnsmasq start || true cabal update fi #--------------------------------------------------------------------- pkg=$CABALNAME echo ==== `date` $pkg start echo cabal --installdir=$BUILDBIN/ \ --overwrite-policy=always install $pkg cabal --installdir=$BUILDBIN/ \ --overwrite-policy=always install $pkg echo ==== `date` $pkg end #--------------------------------------------------------------------- cp -p $BUILDBIN/* $BINDIR/ strip $BINDIR/* HOME=$OLDHOME #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = n/a # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 210617 Added package 220115 Updated to 2.17.0.1 220824 Updated to 2.19.2 240407 Updated to 3.1.2 250526 Reworked package 250526 Updated to 3.7.0.1