Skip to content

Commit

Permalink
Merge pull request #879 from mariux64/update-imagemagick-from-6.9.4-4…
Browse files Browse the repository at this point in the history
…-to-6.9.10-10

Update imagemagick from 6.9.4 4 to 6.9.10 10
  • Loading branch information
david authored Aug 24, 2018
2 parents 135d61b + cb12eb0 commit a9c7514
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
30 changes: 0 additions & 30 deletions imagemagick-6.9.4_p4-0.bee

This file was deleted.

42 changes: 42 additions & 0 deletions imagemagick.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/env beesh

# BEE_VERSION imagemagick-6.9.10p10-0

XPKGVERSION=$(echo ${PKGVERSION} | sed -e 's/p/-/')
SRCURL[0]="https://github.com/ImageMagick/ImageMagick6/archive/${XPKGVERSION}.tar.gz imagemagick-${XPKGVERSION}.tar.gz"

PATCHURL[0]=""

EXCLUDE="^/usr/share/doc"

mee_patch() {
bee_patch
}

mee_configure() {
bee_configure
}

mee_build() {
bee_build
}

mee_install() {
bee_install
}

mee_install_post() {
local tgt=${D}/etc/ImageMagick-6/policy.xml
cp -p -v ${tgt} ${tgt}.raw
xmllint --format ${tgt}.raw > ${tgt}
rm ${tgt}.raw
sed -i -e "/<\/policymap>/ d" ${tgt}
cat <<-XML >> ${tgt}
<!-- prevent GhostScript processing -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" />
<policy domain="coder" rights="none" pattern="XPS" />
</policymap>
XML
}

0 comments on commit a9c7514

Please sign in to comment.