- package: tis-jedit
- name: jEdit
- version: 5.7.0-1
- categories: Development
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: GPL 2.0 ,opensource_free,wapt_public
- target_os: windows
- architecture: all
- signature_date:
- size: 4.63 Mo
package : tis-jedit
version : 5.7.0-1
architecture : all
section : base
priority : optional
name : jEdit
categories : Development
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : jEdit is a text editor for mature programmers
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : jEdit est un éditeur de texte pour programmeurs matures
description_pl : jEdit to edytor tekstu dla dojrzałych programistów
description_de : jEdit ist ein Texteditor für reife Programmierer
description_es : jEdit es un editor de texto para programadores maduros
description_pt : O jEdit é um editor de texto para programadores maduros
description_it : jEdit è un editor di testo per programmatori maturi
description_nl : jEdit is een teksteditor voor volwassen programmeurs
description_ru : jEdit - текстовый редактор для опытных программистов
audit_schedule :
editor :
keywords :
licence : GPL 2.0 ,opensource_free,wapt_public
homepage :
package_uuid : e31a90c5-a1df-4626-8943-94f0a94f65ad
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : c8dc37d8d56f93d9489637873e0b3f347954a47f897c28e914dc7057f6a867bc
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-10-05T09:00:08.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : mKtilp4YBQVG6ckaEUi7VMQXsB1dZIcvioA+XB6rRDmYb6A7ld9+E10rY74z70RSmBibupQBCAvO72zlVnMc6gIPGssebFHhcIXLImhgc7AH0lVP7qKOLvTSIApd13BaZCZgprTbJHulW/Kp0UqtSn+2zn447nu/2MIhJQ8Rw/jtrgZGEFSZtSpXmBQKm1gC30yutRSorfW4txi27OfZ/wbCeWLXWPYDvo2jnOkq4uWlev0mB3yYPxyGXg3cnmdRxjpdNecm3u93FegRBRdxxSSWlUMnp3F+uV9agRMWQwvLrcBxUAgt1hXPlPX6mRJzZU+1lq94TIFyj95u10j5Qw==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
bin_name=glob.glob('jedit*install.exe')[0]
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
key='jEdit_is1',
min_version=control.get_software_version(),
)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import requests
def update_package():
# Déclaration des variables locales
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
url = "https://sourceforge.net/projects/jedit/files/jedit/"
response = requests.get(url)
headers = bs_find_all(url,"th","headers")
if headers:
first_header = headers[0]
a_tag = first_header.find("a")
if a_tag:
first_link = a_tag['href']
version = first_link.split('/')[-2]
print(f"First version found: {version}")
# Trouver tous les éléments <tr> avec la classe file et le titre correspondant à la version
requet = requests.get(url + version).text
rows = bs_find_all(requet, "tr", class_name="file")
target_title = f"jedit{version}install.exe"
download_link = None
for row in rows:
if row.get('title') == target_title:
a_tag = row.find("a", title=f"Click to download {target_title}")
if a_tag:
download_link = a_tag['href']
break
if download_link:
print(f"Download link found: {download_link}")
latest_bin = target_title
download_url = download_link
# Downloading latest binaries
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin,proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating update-package-sources
return package_updated
# # Changing version of the package and validating update-package-sources
# return complete_control_version(control, version)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bc29da7029fc4740e692dc540419e618dddea38ea247c9f12fa5003d812853c2 : WAPT/control
c8dc37d8d56f93d9489637873e0b3f347954a47f897c28e914dc7057f6a867bc : WAPT/icon.png
e3144406a581a155ced242544d4d0d53515e05e0696cfd2969062c27adfbb521 : jedit5.7.0install.exe
567047e69ebdabcba7476d1571c1c4a9b2f154fd05688175353d11854a2abf40 : luti.json
1eb6b9e28d5e615e8b43d2ef85ad78b9f8aa408b7dbc7f1e0ca7891e08d8334c : setup.py
c70bbb757ff3649f64b125e8953af46949d6640cd0ad9071e56f07a3fca5669c : update_package.py