tis-free-pascal icon

FreePascal

Paquet d’installation silencieuse pour FreePascal

3.2.2-1

  • package: tis-free-pascal
  • name: FreePascal
  • version: 3.2.2-1
  • maintainer: Jordan ARNAUD
  • licence: https://wiki.lazarus.freepascal.org/licensing
  • target_os: darwin
  • architecture: x64
  • signature_date:
  • size: 272.10 Mo
  • homepage : https://www.freepascal.org/

package           : tis-free-pascal
version           : 3.2.2-1
architecture      : x64
section           : base
priority          : optional
name              : FreePascal
categories        : 
maintainer        : Jordan ARNAUD
description       : Free Pascal is a mature, versatile, open source Pascal compiler. It can target many processor architectures
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 2.3
sources           : https://sourceforge.net/projects/freepascal/
installed_size    : 
impacted_process  : 
description_fr    : Free Pascal est un compilateur Pascal mature, polyvalent et open source. Il peut cibler de nombreuses architectures de processeurs
description_pl    : Free Pascal to dojrzały, wszechstronny kompilator Pascala o otwartym kodzie źródłowym. Może on działać na wielu architekturach procesorów
description_de    : Free Pascal ist ein ausgereifter, vielseitiger, quelloffener Pascal-Compiler. Er kann für viele Prozessorarchitekturen eingesetzt werden
description_es    : Free Pascal es un compilador Pascal maduro, versátil y de código abierto. Puede utilizarse con muchas arquitecturas de procesador
description_pt    : O Free Pascal é um compilador Pascal maduro, versátil e de código aberto. Pode ser utilizado em muitas arquitecturas de processadores
description_it    : Free Pascal è un compilatore Pascal maturo, versatile e open source. Può essere indirizzato a molte architetture di processori
description_nl    : Free Pascal is een volwassen, veelzijdige, open source Pascal compiler. Het kan zich richten op veel processorarchitecturen
description_ru    : Free Pascal - это зрелый, универсальный компилятор Паскаля с открытым исходным кодом. Он может работать со многими процессорными архитектурами
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://wiki.lazarus.freepascal.org/licensing
homepage          : https://www.freepascal.org/
package_uuid      : a22e1ae8-6eae-43d4-9a4d-932baaf29034
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4a6a7a590a670b402cbd57dd6dfff19628b8a0fa5d2fd28ea6d7feacc817f137
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : St2WBvdfKXGm+wCgTquwd0gUehv9cmXx7jpqy48sgtyf3jRNN7+GkGwnxFcivSKwPDw2m5t5KE6kLk6tyUWznrmlOORcpwrExUO5B+m8Zm3sH0sTveGUexOdb0aco6NCEl/oH9/RGFf3/EuJGLjRBN0UPS2jD59ucRkCv6c0P2aEgs00uKsAZn7OmwruYKr7dBOXbs9ryEbsRFZWeDnGiMxDGw24BCv92jcryAk/di+XRL7rY407KydATMUgr7oKc72fCXfRDMbQI4XaAdTT6sCetTmGG/bqf67fpilxBwc/a9cVk7tpSPKi3iJAK9YDwD8sHfjOIGIufmt4bnXa7Q==
signature_date    : 2024-08-18T11:00:38.321323
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

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    version = control.get_software_version()
    merge_version = version.replace('.','')
    key = 'pkgid:org.freepascal.freePascalCompiler%s.fpcinstintelarm64' % merge_version
    install_dmg(glob.glob("fpc-*-macosx.dmg")[0],key=key, min_version=version ,get_version=get_version_fpc)


def get_version_fpc(key):
    version_fpc = run('/usr/local/bin/fpc -h').split('Compiler version ')[1].split(' ')[0]
    return version_fpc

# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    api_url = "https://sourceforge.net/projects/freepascal/best_release.json"
    update_dict = {
        # "bin_contains": {
        #     "x64": "-x64-svn-",
        #     "arm64": "-ARM64-svn-",
        #     "x86": "-win32-svn-",
        # },
        "latest_bin_to_substitute": {
            "x64": ".dmg",
        },
    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    for to_download in json_load["platform_releases"]:
        if "mac" in json_load["platform_releases"]["mac"]["filename"]:
            latest_bin = json_load["platform_releases"][to_download]["filename"].split("/")[-1]
            download_url = json_load["platform_releases"][to_download]["url"].replace("http://", "https://")
            version = json_load["platform_releases"][to_download]["filename"].split("-")[1].split(".intel")[0]
            break

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    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)

52dd38dac33297588e4b01f217184a3b9f8c9459fb029e0c5adf53b4f4e1f25d : setup.py
05d4510c8c887e3c68de20272abf62171aa5b2ef1eba6bce25e4c0bc41ba8b7d : fpc-3.2.2.intelarm64-macosx.dmg
cbc6fa6687644f901d8a12f3af43a6264f4d80d350f2bda47708ad58212b3fa7 : update_package.py
4a6a7a590a670b402cbd57dd6dfff19628b8a0fa5d2fd28ea6d7feacc817f137 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
482a9ba99961690186e69d43fcf83c2cc40105ac407db8f20797c752da00c7ac : luti.json
05081028d7e4f0f6bd7a86b4470bb0f18e92fbdaff1c6995282673ed38cb5107 : WAPT/control