tis-inkscape
1.0.2-2
Inkscape is a free vector drawing software under the GNU GPL license
7417 downloads

Description
- package : tis-inkscape
- version : 1.0.2-2
- architecture : x64
- categories : Utilities
- maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
- description : Inkscape is a free vector drawing software under the GNU GPL license
- locale : all
- target_os : darwin
- min_os_version :
- max_os_version :
- min_wapt_version : 1.5
- sources : https://gitlab.com/inkscape/inkscape
- installed_size :
- impacted_process : inkscape
- description_fr : Inkscape est un logiciel libre de dessin vectoriel sous licence GNU GPL
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Inkscape.org
- licence : GPLv3+
- signature_date : 2021-01-19T12:30:01.331384
- Homepage : https://inkscape.org/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
import shutil
uninstallkey = []
def install():
install_dmg('Inkscape-%s.dmg' % control.version.split('-')[0])
def uninstall():
shutil.rmtree('/Applications/Inkscape.app')
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
url = 'https://inkscape.org/release/?latest=1'
# Getting latest version from official website
page = wgets(url,proxies=proxy)
for u in BeautifulSoup.BeautifulSoup(page).findAll('li',{'class':'download'}) :
if 'mac' in u.a.attrs['href']:
urlosx = 'https://inkscape.org' + u.a.attrs['href']
break
# Getting latest version from official website
page = ensure_unicode(wgets(urlosx,proxies=proxy))
url_dl = 'https://inkscape.org' + BeautifulSoup.BeautifulSoup(page).findAll('meta',{'http-equiv':'Refresh'})[0].attrs['content'].split('url=')[1]
newfilename = url_dl.split('/')[-1]
v = newfilename.split('-')[1].strip('.dmg')
print('Last version %s' % v)
# Downloading latest binaries
if not isfile(newfilename):
print('Downloading: ' + newfilename)
wget(url_dl,newfilename,proxies=proxy)
print('Update package done. You can now build-upload your package')
control.version = '%s-1' % newfilename.split('-')[1].strip('.dmg')
control.save_control_to_wapt()
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.dmg'):
if bin_in_dir != newfilename :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
Changelog
Changelog software url : https://inkscape.org/release
No changelog
[["Inkscape-1.0.2.dmg","2e8eb5f8aa8a974b4621151e17af8b9106363518a5834c54da6a2649a5191b81"],["setup.py","f4fe326809f42ef01448739ce9d39af2ab0c40f5fa1f5546bbfcea7a0d829ff3"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9"],["WAPT/control","027cd056f204d140c16c094c02b9a5d047f6f6e7b9c5308cf7ac810971b6b35a"]]