[Dependencies] Switched to gs (from ghostscript)
- The short name is more common Related to #209
This commit is contained in:
parent
13e5485fe8
commit
699b2f4d16
|
|
@ -40,6 +40,7 @@ Dependencies:
|
||||||
url: https://www.ghostscript.com/
|
url: https://www.ghostscript.com/
|
||||||
url_down: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
|
url_down: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
|
||||||
debian: ghostscript
|
debian: ghostscript
|
||||||
|
command: gs
|
||||||
downloader: gs
|
downloader: gs
|
||||||
- name: ImageMagick
|
- name: ImageMagick
|
||||||
url: https://imagemagick.org/
|
url: https://imagemagick.org/
|
||||||
|
|
@ -459,12 +460,12 @@ def gs_downloader(dep, system, plat):
|
||||||
logger.debug('- No suitable binary')
|
logger.debug('- No suitable binary')
|
||||||
return None
|
return None
|
||||||
# Try to download it
|
# Try to download it
|
||||||
res = try_download_tar_ball(dep, url, 'ghostscript', 'ghostscript-*/gs*')
|
res = try_download_tar_ball(dep, url, 'gs', 'ghostscript-*/gs*')
|
||||||
if res is not None:
|
if res is not None:
|
||||||
short_gs = res[:-11]+'gs'
|
short_gs = res
|
||||||
long_gs = res
|
long_gs = res[:-2]+'ghostscript'
|
||||||
if not os.path.isfile(short_gs):
|
if not os.path.isfile(long_gs):
|
||||||
os.symlink(long_gs, short_gs)
|
os.symlink(short_gs, long_gs)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue