From nobody Tue Nov 15 16:17:43 2022 X-Original-To: dev-commits-ports-all@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 4NBWYM4JBJz4h8Fl; Tue, 15 Nov 2022 16:17:43 +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 4NBWYM3hfWz3qQ5; Tue, 15 Nov 2022 16:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668529063; 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=WIXmUQ++WcwGGgCdrzQZHe9P3BXH3jCSmV3H9C4gFnU=; b=qIBwNbW4WFoYXMrKL5irOEnw+auYanAo5R+uDeZA4ixVVsHdUsQLSJAAE4qRaJVziTMBQF nj6qICqvjL3yuEV++csdX289eyfthuHi4NhGkHY9eEopK+wsqTaFC2dCpotufaP80hL6pU EOCsV8WvkRi+ssxdTCP6mNgJoNp0wXZg2O0gJ9CksJCaCW3Ry/KhfwRS9Fe2Dp5YabJ5Co 3NmwviXX9PyKCcfO1cks2FUb8qfCG+8hX7KjphOKKAnl/88u4N10wglojVE+Wakxm0CO3v /D0Qf5tebKl909JUa40tsRQ6wdUatz1//k4vXz5eASkkEyTgvsHCw3pYaQDP5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668529063; 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=WIXmUQ++WcwGGgCdrzQZHe9P3BXH3jCSmV3H9C4gFnU=; b=d8EYs0T1uJK8RRxywQriUBr6oiQv/iP2SabhaXWXhqcR67wPLIkoPPFZCo2QwmRu8oqqUT RA3TRi7FQjWR2TjMcjJsiThj6yBuI1ziSFPwug6fzW/Q6563C9qLlmVY/Dly0GagpJCgKc ICgOJZhq0jgywB0Z8s6wdSYFlXpvVnqrDgkixQg5s3xcV2HH2o3aE0x7c2bnJb/Vn+7AwP zr9u0SuyYDTfTRisMJMhu/GY6CdM9raye2Q4nqLEu6DL+QW1AiBS9sHgtFmol0U+MHb1Ku nGutrD7A3AgL6Z1qH2qHLB15ESFPIwDLUfX7EaUAPswyveqCM2gRWPvQ7rbwCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668529063; a=rsa-sha256; cv=none; b=RExJ+AURSwSRzEUtbgjOu6k6LiolYZSJ8XkekF+S8MqhxmU3xaY3j6WnT7VNTuLsz3Dc2p LIiO+yWHD/2nSMtpEQrAMaacUzyajT6cMTb1ckkCbWdeg/zQKPyHqbvJSTCQEPuPyqMJXx 2qUfFsNdB+XDg+oIRVNf3EcLQwRC4B1L5+3OCLRbaVu9q8PfTFxWQnB3mkDW/IAWdj4lOW Zxb4knbPh4VxZwbxHzhmhUam8pZIfDPtb8pRDWVD4CQf4xU5rv3wyd4/ZVJX9Yp2kdGd1u trPuAWqWdhr8HS/S3exVrw6akRQ/P/xmaU7J7s7K2yaBnIEMgmXNMjD9drWQIw== 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 4NBWYM2jhxzT9V; Tue, 15 Nov 2022 16:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AFGHhac001196; Tue, 15 Nov 2022 16:17:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AFGHh7u001195; Tue, 15 Nov 2022 16:17:43 GMT (envelope-from git) Date: Tue, 15 Nov 2022 16:17:43 GMT Message-Id: <202211151617.2AFGHh7u001195@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 1fca3ae8c346 - main - lang/ldc: Improve port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1fca3ae8c346242fc7a91a797b4b9b82657ea1f3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=1fca3ae8c346242fc7a91a797b4b9b82657ea1f3 commit 1fca3ae8c346242fc7a91a797b4b9b82657ea1f3 Author: Jose Alonso Cardenas Marquez AuthorDate: 2022-11-15 15:56:32 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2022-11-15 16:17:04 +0000 lang/ldc: Improve port - STRIP binary files - Add GCC to LIB_DEPENDS - Remove obsolete lines --- lang/ldc/Makefile | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile index b2f030adc948..3293222acec9 100644 --- a/lang/ldc/Makefile +++ b/lang/ldc/Makefile @@ -1,5 +1,6 @@ PORTNAME= ldc PORTVERSION= 1.30.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/ DISTVERSIONSUFFIX= -src @@ -15,11 +16,10 @@ BROKEN_armv7= fails to compile: Error: undefined identifier _jmp_buf, did you me BROKEN_i386= function core.bitop.bsf (uint v) is not callable using argument types (ulong) BROKEN_riscv64= fails to compile: unable to get target for 'riscv64-portbld-freebsd13.0', see -version and -mtriple. -LLVM_VERSION= 13 -BUILD_DEPENDS= gdmd>0:devel/gdmd \ - gdc11:lang/gcc11 -RUN_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION} -LIB_DEPENDS= libconfig.so:devel/libconfig +BUILD_DEPENDS= gdmd>0:devel/gdmd +RUN_DEPENDS= llvm${_LLVM_VER}>0:devel/llvm${_LLVM_VER} +LIB_DEPENDS= libconfig.so:devel/libconfig \ + libgphobos.so:lang/gcc${_GCC_VER} USES= ninja cmake:insource pkgconfig @@ -29,10 +29,12 @@ USES= ninja cmake:insource pkgconfig USE_LDCONFIG= yes -CC= ${LOCALBASE}/bin/clang${LLVM_VERSION} -CXX= ${LOCALBASE}/bin/clang++${LLVM_VERSION} -LLVM_CONFIG= ${LOCALBASE}/bin/llvm-config${LLVM_VERSION} -LDCVER= ${PORTVERSION} +CC= ${LOCALBASE}/bin/clang${_LLVM_VER} +CXX= ${LOCALBASE}/bin/clang++${_LLVM_VER} +LLVM_CONFIG= ${LOCALBASE}/bin/llvm-config${_LLVM_VER} + +_GCC_VER= 11 +_LLVM_VER= 13 .include @@ -48,4 +50,11 @@ CMAKE_ARGS+= -DLDC_INSTALL_PREFIX="${PREFIX}" \ -DBUILD_SHARED_LIBS="BOTH" \ -DBUILD_LTO_LIBS=ON +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-build-runtime + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-profdata + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-prune-cache + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc2 + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldmd2 + .include