diff options
author | 2024-03-01 12:00:07 +0100 | |
---|---|---|
committer | 2024-03-01 12:00:07 +0100 | |
commit | 0167b4919c0bc36d0bb1bb603640add3b9aecd5b (patch) | |
tree | 2f1d4f9693225c3993e3749cd9714738a50e6295 | |
parent | bootstrap-tex4ht: remove duplicate 'wget' (diff) | |
download | tex-main.tar.gz tex-main.tar.bz2 tex-main.zip |
add overlay-to-gentoomain
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rwxr-xr-x | overlay-to-gentoo | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/overlay-to-gentoo b/overlay-to-gentoo new file mode 100755 index 0000000..34d739b --- /dev/null +++ b/overlay-to-gentoo @@ -0,0 +1,99 @@ +#!/usr/bin/env bash +set -eu + +# Defines a somewhat sensible order in which packages should be merged +# into ::gentoo. +PACKAGES=( + dev-libs/kpathsea + dev-libs/ptexenc + + app-text/dvipsk + app-text/ttf2pk2 + app-text/ps2pkm + app-text/dvisvgm + + dev-tex/biblatex + dev-tex/biber + + dev-tex/latexmk + dev-tex/glossaries + dev-tex/tex4ht + dev-tex/minted + dev-tex/bibtexu + dev-tex/pgf + dev-tex/latex-beamer + + app-text/texlive-core + + dev-texlive/texlive-basic + dev-texlive/texlive-luatex + dev-texlive/texlive-latex + dev-texlive/texlive-latexrecommended + dev-texlive/texlive-plaingeneric + + dev-texlive/texlive-fontutils + dev-texlive/texlive-langportuguese + dev-texlive/texlive-publishers + dev-texlive/texlive-langpolish + dev-texlive/texlive-langcyrillic + dev-texlive/texlive-langspanish + dev-texlive/texlive-langkorean + dev-texlive/texlive-langczechslovak + dev-texlive/texlive-music + dev-texlive/texlive-pstricks + dev-texlive/texlive-xetex + dev-texlive/texlive-langjapanese + dev-texlive/texlive-fontsextra + dev-texlive/texlive-langother + dev-texlive/texlive-formatsextra + dev-texlive/texlive-langitalian + dev-texlive/texlive-langfrench + dev-texlive/texlive-pictures + dev-texlive/texlive-mathscience + dev-texlive/texlive-metapost + dev-texlive/texlive-latexextra + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-langarabic + dev-texlive/texlive-context + dev-texlive/texlive-fontsrecommended + dev-texlive/texlive-langgreek + dev-texlive/texlive-langeuropean + dev-texlive/texlive-games + dev-texlive/texlive-langchinese + dev-texlive/texlive-langenglish + dev-texlive/texlive-binextra + dev-texlive/texlive-humanities + dev-texlive/texlive-langgerman + dev-texlive/texlive-langcjk + + app-text/texlive +) + +GENTOO_DIR="$(portageq get_repo_path / gentoo)" +TEX_OVERLAY_DIR="$(portageq get_repo_path / tex-overlay)" + +for PACKAGE in "${PACKAGES[@]}"; do + SOURCE="${TEX_OVERLAY_DIR}/${PACKAGE}" + DEST="${GENTOO_DIR}/${PACKAGE}" + + [[ ! -d "${DEST}" ]] && mkdir "${DEST}" + + cp "${SOURCE}"/*.ebuild "${DEST}" + cp "${SOURCE}"/metadata.xml "${DEST}" + if [[ -d "${SOURCE}"/files ]]; then + [[ ! -d "${DEST}"/files ]] && mkdir "${DEST}"/files + + cp "${SOURCE}"/files/* "${DEST}"/files + fi + + cd "${DEST}" + + git add . + + if git diff-index --quiet @; then + echo "Nothing to commit for ${PACKAGE}" + continue + fi + + pkgdev commit +done |