diff options
author | 2013-07-23 11:39:43 +0200 | |
---|---|---|
committer | 2013-07-23 11:39:43 +0200 | |
commit | 94a69b541d4c0f0347b9e4380a6182a7530f1c1d (patch) | |
tree | 20f10c835a6917b0ca9dbf594aafaf35172ff86b /gs_ctan | |
parent | CTAN backend: work with tar.xz sources (diff) | |
download | g-sorcery-94a69b541d4c0f0347b9e4380a6182a7530f1c1d.tar.gz g-sorcery-94a69b541d4c0f0347b9e4380a6182a7530f1c1d.tar.bz2 g-sorcery-94a69b541d4c0f0347b9e4380a6182a7530f1c1d.zip |
gs_ctan/data/gs-ctan.eclass: work with zip-sources with multiple dirs
Diffstat (limited to 'gs_ctan')
-rw-r--r-- | gs_ctan/data/gs-ctan.eclass | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/gs_ctan/data/gs-ctan.eclass b/gs_ctan/data/gs-ctan.eclass index eba6183..3cf9269 100644 --- a/gs_ctan/data/gs-ctan.eclass +++ b/gs_ctan/data/gs-ctan.eclass @@ -40,7 +40,7 @@ GSCTAN_FETCH_CMD="wget" inherit latex-package if [[ ${SOURCE_TYPE} = "zip" ]]; then - EXPORT_FUNCTIONS src_unpack + EXPORT_FUNCTIONS src_{unpack,compile,install} else EXPORT_FUNCTIONS src_{unpack,install} fi @@ -76,7 +76,27 @@ gs-ctan_src_unpack() { fi } +gs-ctan_src_compile() { + cd ${S} || die + latex-package_src_compile + for d in `ls -d -- */`; do + pushd ${d} || die + latex-package_src_compile + popd || die + done +} + gs-ctan_src_install() { - insinto ${TEXMF} - doins -r * + if [[ ${SOURCE_TYPE} = "zip" ]]; then + cd ${S} || die + latex-package_src_install + for d in `ls -d -- */`; do + pushd ${d} || die + latex-package_src_install + popd || die + done + else + insinto ${TEXMF} + doins -r * + fi } |