1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Improve LibreOffice src list generation

This commit is contained in:
Michael Raskin 2016-01-21 17:16:28 +01:00
parent f727f815cb
commit e32172612a
3 changed files with 14 additions and 0 deletions

View file

@ -1,7 +1,11 @@
#!/run/current-system/sw/bin/bash
# Ideally we would move as much as possible into derivation dependencies
# Take the list of files from the main package, ooo.lst.in
# This script wants an argument: download list file
cat <<EOF
[
EOF
@ -11,11 +15,18 @@ write_entry(){
echo " name = \"${name}\";"
echo " md5 = \"${md5}\";"
echo " brief = ${brief};"
eval "echo -n \"\$additions_${name%%[-_.]*}\""
eval "test -n \"\$additions_${name%%[-_.]*}\" && echo"
echo '}'
}
cat "$(dirname "$0")/libreoffice-srcs-additions.sh" "$@" |
while read line; do
case "$line" in
EVAL\ *)
echo "${line#* }" >&2;
eval "${line#* }";
;;
\#*)
echo Skipping comment: "$line" >&2;
;;
@ -42,6 +53,7 @@ while read line; do
line="${line#,}"
md5=${line:0:32};
name=${line:33};
name="${name%)}"
brief=false;
write_entry;
;;

View file

@ -0,0 +1 @@
EVAL additions_libgltf=' subDir = "libgltf";'

View file

@ -323,6 +323,7 @@
name = "libgltf-0.0.2.tar.bz2";
md5 = "d63a9f47ab048f5009d90693d6aa6424";
brief = true;
subDir = "libgltf";
}
{
name = "liblangtag-0.5.1.tar.bz2";