From nobody Sun Jul 02 18:19:37 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QvHQL0HkPz4lBBG; Sun, 2 Jul 2023 18:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QvHQK6sZhz49Z4; Sun, 2 Jul 2023 18:19:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688321978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEYTrzC2aYCqVJxtZHt6UPirtYAWsFQR9lNLQhHdahM=; b=ApTYsK08bcJgBQayAn2EwcDLcYSEee1HbKGF0LhAzBFxqNRZg1YMxOo+Q7GhSnhmO4KY+G K0/Ywucrzvn8qK9hCJ197Sgwq6IyAQqVCe8ssp4bKj5ZNxr7m1YRcRnXQSQqQEhtAdu/9i NCjqJMrkZ92N8mORYiwaHck3haBMohZsA1H/LVP2fyeX93ijt1cT442MrYku6OUxiufz83 nI6OctptBygg5gLNdgTNzD0KnCqaiahzA4o1ZbroWLvggV++SMtsz32h5kPLH/6x5+YxC0 eoE0/BHTuzC5oR+3GxB5LPEOFilk51dY0QOpZLRjlpjgZ5mpyNVQ6MFA5tUF1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688321978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEYTrzC2aYCqVJxtZHt6UPirtYAWsFQR9lNLQhHdahM=; b=VVBJCpZaG7yojpprBlrsghfA6lJxXA1cC87p/9QRaXh0rCjbUf0J25BQRNj0M5aaYdDcDg XCtVUPaUmBjTL7IANmfybxTrXH2w+mPNp++KbKf64OkrusvEVqH+rMsiyOH9/t2NFhcISH nJnk9d+A32rbnlro/nGbzkau7O0cdQGG3AayJv1KlO0JInLdBDwIfk83O4JlYomaqNNW7b GqXNSdTB14YjP2FcABjjCun1grNPz7rCS9SOk+n0XBqXJjPF0dKJIhycBcRO27aJnFUbnr n8lAAvWuLgncfl7PkLc83+YVp0eToSon2q7CRI44lH6DENC6YWo8BM+1Abqm9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688321978; a=rsa-sha256; cv=none; b=QbZv7xVD/vgbkKhJDnxy7AFoc4rkafYEL3mIf1MbG9fFGH8jQdzkvynQ8D5Fc/h1WNQcYj Jl7FHNPPzIZNDsxd/hSkm6hGXJXXYO7QoKE0LB3OkcU6wPlGxZ+hhBSXUtFb8Ki8GPyweF oGuIMGPaQFJVrWaVTbtejLvqXZAyli6OmnZ75WxI4W7cFoJfpgsp7dcbw7egbsgPxtqx3M Q2V8VH+irLuMMi+y0mbollr2I1KMgmKKoviGfm0aTPYnrWxicnu28UK4PmlJb9E3bIMsDn L1b5D5mvU7Bm4RqphfMnZIFL1oDvTo68TvWzQSmKwj4PAIE+rRqlBXs6nulHPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QvHQK5WlVzJNx; Sun, 2 Jul 2023 18:19:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 362IJbqc035182; Sun, 2 Jul 2023 18:19:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 362IJbps035181; Sun, 2 Jul 2023 18:19:37 GMT (envelope-from git) Date: Sun, 2 Jul 2023 18:19:37 GMT Message-Id: <202307021819.362IJbps035181@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rene Ladan Subject: git: dd152219f70d - main - Mk: ghostscript: modernize List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rene X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd152219f70da0465ee12edb1feeae5e2f802c51 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd152219f70da0465ee12edb1feeae5e2f802c51 commit dd152219f70da0465ee12edb1feeae5e2f802c51 Author: Rene Ladan AuthorDate: 2023-07-02 10:11:36 +0000 Commit: Rene Ladan CommitDate: 2023-07-02 18:19:02 +0000 Mk: ghostscript: modernize - add support for GhostScript 10 - bump versions for dependency lines - 9 and agpl are synonymous, represent this in the Makefile PR: 270989 (point 3 + 5) Reported by: Chad Jacob Milios (original) Continued work: Michael Osipov Reviewed by: diizzy MFH: 2023Q3 --- Mk/Uses/ghostscript.mk | 43 +++++++++++++++++++++++++++---------------- Mk/bsd.default-versions.mk | 2 +- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/Mk/Uses/ghostscript.mk b/Mk/Uses/ghostscript.mk index af38582e8384..8e5010986ccd 100644 --- a/Mk/Uses/ghostscript.mk +++ b/Mk/Uses/ghostscript.mk @@ -4,8 +4,8 @@ # Usage: USES=ghostscript or USES=ghostscript:args # Valid ARGS: , build, run, test, x11 # -# version The chooseable versions are 9 and agpl. If no version is -# specified version agpl is selected. +# version The chooseable versions are 9, agpl and 10. If no version is +# specified version agpl is selected. 9 and agpl are synonymous. # # USES=ghostscript:9 # Use Ghostscript 9 # USES=ghostscript:run # Use the set default Ghostscript as a run dependency @@ -30,15 +30,15 @@ _INCLUDE_USES_GHOSTSCRIPT_MK= yes # allowed versions # When adding a version, please keep the comment in # Mk/bsd.default-versions.mk in sync. -_GS_VERSION= 9 agpl +_GS_VERSION= 9 agpl 10 -_GS_ARGS= ${ghostscript_ARGS} +_GS_ARGS= ${ghostscript_ARGS} -. if ${_GS_ARGS:N[9]:Nagpl:Nx11:Nbuild:Nrun:Ntest} +. if ${_GS_ARGS:N9:N10:Nagpl:Nx11:Nbuild:Nrun:Ntest} IGNORE?= Unknown ghostscript argument ${_GS_ARGS} . endif -. if ${GHOSTSCRIPT_DEFAULT:N[9]:Nagpl} +. if ${GHOSTSCRIPT_DEFAULT:N9:Nagpl:N10} IGNORE?= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION} . endif @@ -67,29 +67,40 @@ _GS_RUN_DEP= yes .undef _GS_SELECTED . for V in ${_GS_ARGS} ${GHOSTSCRIPT_DEFAULT} _V=${V} -. if ${_V:M9} -_GS_SELECTED?= 9 +. if ${_V:M10} +_GS_SELECTED?= 10 +. elif ${_V:M9} +_GS_SELECTED?= 9-agpl . elif ${_V:Magpl} _GS_SELECTED?= 9-agpl . endif . endfor +. undef _GS_FLAVORED +. if empty(_GS_SELECTED:M9-agpl) +_GS_FLAVORED= yes +. endif + # Resolve minor version number for X11.so library. -. if !empty(_GS_SELECTED:M9-agpl) -_GS_VERSION_MINOR= 9.16_2 -. elif !empty(_GS_SELECTED:M9) -_GS_VERSION_MINOR= 9.06_11 +. if !empty(_GS_SELECTED:M10) +_GS_VERSION_MINOR= 10.01.2 +. elif !empty(_GS_SELECTED:M9-agpl) +_GS_VERSION_MINOR= 9.56.1 . endif # dependencies -_GS_PORT= ghostscript${_GS_SELECTED}-base -_GS_X11_PORT= ghostscript${_GS_SELECTED}-x11 +_GS_PKGNAME= ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} +_GS_X11_PKGNAME=ghostscript${_GS_SELECTED}-x11 +_GS_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} +_GS_X11_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?@:-}x11 . for type in BUILD RUN TEST . if defined(_GS_${type}_DEP) -${type}_DEPENDS+= ${_GS_PORT}>=${_GS_VERSION_MINOR}:print/${_GS_PORT} +. if defined(_GS_FLAVORED) || !${_GS_ARGS:Mx11} +${type}_DEPENDS+= ${_GS_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_PORT} +. endif . if ${_GS_ARGS:Mx11} -${type}_DEPENDS+= ${_GS_X11_PORT}>=${_GS_VERSION_MINOR}:print/${_GS_X11_PORT} +${type}_DEPENDS+= ${_GS_X11_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_X11_PORT} . endif . endif . endfor diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk index e3fac4c45918..3cf846195760 100644 --- a/Mk/bsd.default-versions.mk +++ b/Mk/bsd.default-versions.mk @@ -53,7 +53,7 @@ GCC_DEFAULT?= 8 . else GCC_DEFAULT?= 12 . endif -# Possible values: 9, agpl +# Possible values: 9, agpl, 10 GHOSTSCRIPT_DEFAULT?= agpl # Possible values: mesa-libs, mesa-devel GL_DEFAULT?= mesa-libs