From nobody Sun Jul 09 10:45:51 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 4QzP1W4fGjz4lpfl; Sun, 9 Jul 2023 10:45:51 +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 4QzP1W3Fnwz4Yw8; Sun, 9 Jul 2023 10:45:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688899551; 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=gqqGblyCwTPIrjrPzMO9+UA7k+W+Tc3MvU3BA5fOPfc=; b=pF6wu8hy9d3HRbIGHqX6yiejevQHUcsNY7ZIymvMZfd7oXTa7EYRm4uOcCxTgsOFEMVQAP jftoT69c+yiL+N42ciV7VP5iHPtFoqDUnCSxkUtGzr2sybKiWtW/7bG+tz5tUk0PqbVP4e ZMCijHgxp/3ZS+IBJbYrVsi6EygEf0ADDRSz3ozzsdmuT+Mc2n0L5FHCGjVBPOKVHRyVxu Eipz4iQjkxhvlqBJouXdRpzeBX8hOWY6sugxLkdrW6KzZxweZcClIBqnpKHRMdFkQThvIm fhkLSMmntuZ5/vC21d2m3ClOfVLAveqK5BX/dusZ6alGxJwmxc5oc6nzaskbxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688899551; 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=gqqGblyCwTPIrjrPzMO9+UA7k+W+Tc3MvU3BA5fOPfc=; b=I/KcJE15p1aPQp3qEtLDGrbvLmNw7ed/4O3Wl0Jk8r07YnGM+nlNTURfQkp2Pc5c/FTU08 SZtiZvbDpGX5gZTxakLnffoMlNG5n54870pnAtzx90j8HABf3AixU3Kv8TpdiN5PhhtWfR zVj96Yij6wxrMaaYC4VXMOFyryFdQyD0uGCxkE/OELIkd2n2nAJ/qLGGYzaUg5Y9guqR1N zSOLxoGoGUd1P1L/WQArUKPBZYKQXKtboUUcm2fez5wAk9eye4WfXWx2cTkfm1PxDfijoN WXHL8vcmH2CulvpuYjtmQJmKN/ggozCh3ObKpx7Y9r6uo9PlseqnH5F1hoFasw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688899551; a=rsa-sha256; cv=none; b=cI8Pb8lCV6k9ylAMsMtppJSWeNdcKNDlReZRrbz5SZn0fmiqC5JHrGSKqTE2aCaMxTcdSD kfOeVhr6+1imgPi0VB4N0H4fGAmp45qEVLDVsyQqdYsTCHjEpwBKIc3SgMSa7zUvDlphmQ 3zeH7wopGw89+VCNjstHnRXGsGpyLEibtuOH35uzTTw+IXmpU/R6K9Yky69XnUBXM4hY0R kESkHtN+qhKs1tv1MdSZeNO5HfK2c7MbdZZPg2e9rks98UXb/n6Rten/sHIEEapZs9ACra jDAoGox9EfVRHlQLwx8GSsCtFXAwYbhqxKd1RTL2GNCQ1YTyH6g6N1uRcpj/Kw== 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 4QzP1W2MZ3z10mg; Sun, 9 Jul 2023 10:45:51 +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 369Ajpo9084353; Sun, 9 Jul 2023 10:45:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369Ajpwc084351; Sun, 9 Jul 2023 10:45:51 GMT (envelope-from git) Date: Sun, 9 Jul 2023 10:45:51 GMT Message-Id: <202307091045.369Ajpwc084351@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: af2d42e1748e - main - databases/py-gdbm: Strip shared library 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af2d42e1748eff3bd8627faa4f21fccd4998bb63 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=af2d42e1748eff3bd8627faa4f21fccd4998bb63 commit af2d42e1748eff3bd8627faa4f21fccd4998bb63 Author: Po-Chuan Hsieh AuthorDate: 2023-07-09 10:28:19 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-09 10:28:19 +0000 databases/py-gdbm: Strip shared library - Clean up - Bump PORTREVISION for package change --- databases/py-gdbm/Makefile | 18 ++++++++++-------- databases/py-gdbm/files/setup.py | 7 +++---- databases/py-gdbm/files/setup3.py | 28 ---------------------------- 3 files changed, 13 insertions(+), 40 deletions(-) diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile index cc7bf5a7148c..17034fe06914 100644 --- a/databases/py-gdbm/Makefile +++ b/databases/py-gdbm/Makefile @@ -1,10 +1,11 @@ PORTNAME= gdbm DISTVERSION= ${PYTHON_DISTVERSION} -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= databases python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Python-${DISTVERSION} +DIST_SUBDIR= python MAINTAINER= python@FreeBSD.org COMMENT= Python bindings to the GNU dbm library (Python ${PYTHON_VER}) @@ -13,18 +14,19 @@ LICENSE= PSFL LIB_DEPENDS= libgdbm.so:databases/gdbm -PORTSCOUT= ignore:1 - USES= compiler:c11 python tar:xz -USE_PYTHON= distutils autoplist allflavors +USE_PYTHON= allflavors autoplist distutils +DISTINFO_FILE= ${.CURDIR}/../../lang/python${PYTHON_SUFFIX}/distinfo PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHONPREFIX_LIBDIR}/lib-dynload - -DIST_SUBDIR= python -DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo WRKSRC_SUBDIR= Modules +PORTSCOUT= ignore:1 + post-extract: - @${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py + @${CP} ${FILESDIR}/setup.py ${WRKSRC}/setup.py + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload/_gdbm.cpython-${PYTHON_SUFFIX}.so .include diff --git a/databases/py-gdbm/files/setup.py b/databases/py-gdbm/files/setup.py index 9acb68c35da1..0a947466d03e 100644 --- a/databases/py-gdbm/files/setup.py +++ b/databases/py-gdbm/files/setup.py @@ -9,10 +9,9 @@ try: from distutils.command.install import install from distutils.core import setup, Extension except: - raise SystemExit, "Distutils problem" + raise SystemExit("Distutils problem") -install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd, - install.sub_commands) +install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include"] @@ -22,7 +21,7 @@ libs = ["gdbm"] setup(name = "gdbm", description = "GDBM Extension to Python", - ext_modules = [Extension('gdbm', ['gdbmmodule.c'], + ext_modules = [Extension('_gdbm', ['_gdbmmodule.c'], include_dirs = inc_dirs, libraries = libs, library_dirs = lib_dirs)] diff --git a/databases/py-gdbm/files/setup3.py b/databases/py-gdbm/files/setup3.py deleted file mode 100644 index 0a947466d03e..000000000000 --- a/databases/py-gdbm/files/setup3.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -# To use: -# python setup.py install -# - -try: - import distutils - from distutils import sysconfig - from distutils.command.install import install - from distutils.core import setup, Extension -except: - raise SystemExit("Distutils problem") - -install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] - -prefix = sysconfig.PREFIX -inc_dirs = [prefix + "/include"] -lib_dirs = [prefix + "/lib"] -libs = ["gdbm"] - -setup(name = "gdbm", - description = "GDBM Extension to Python", - - ext_modules = [Extension('_gdbm', ['_gdbmmodule.c'], - include_dirs = inc_dirs, - libraries = libs, - library_dirs = lib_dirs)] - )