From nobody Mon Feb 03 17:55:38 2025 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 4YmvL23q94z5mFtH; Mon, 03 Feb 2025 17:55: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YmvL22qhjz3PTj; Mon, 03 Feb 2025 17:55:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738605338; 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=Z1HaB6bWAyuurwedxebzANYHKUFXYCk4t1QbjXbbgOw=; b=tmpJ2YXCNe7/jDENkAGmM6ItuTcVKSp1XiSFVQdSPt29f+InBKrllPVfe5SHXsQjNwEXDZ gHMkK0nI/D1Y8l/s52TQX2M/vUEmjuBSlTv6VE6w8VIpSHOnJfKhngdOfpk7o9wVMNq3Vj ba7IajCP+6KQZQNB2RXYK/qBP/uOPxOA2wEVHYCp2EC4A/aDd/uh/MJ9NEpBEfDQVdoWoA yLYeEH6lSEt0V/tC/Hkc99qdWEYPHoMO6KwVIcrt0EZviisl4Y91yij1jZj3RelY9t8Ft4 GFdCa4Tg7lj9WjbhUAh51rGMkHWYcmf1gFMqbdjhKSTWoRNdQC+w7e+yBKRzmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738605338; 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=Z1HaB6bWAyuurwedxebzANYHKUFXYCk4t1QbjXbbgOw=; b=Pxo+p3lUH8e7jSPS6CkodM9FCuiPUiy6ZNSITMviUACWI45i2PkWhkb7jjvyzu+GqvGf1O IltUauukvsWlDa3+mvNUNTOUusJpIz5Q+JXmt1NERSvDuaTJIeAMcir+e389MrUa1TkVMx 9d84kmTyJKyf4WmGOml4uaNaPhiJb+nNs3WPYAD1uYXG1BxrUlWw9C+pVNszPLssGWKJow 0GcYf3JGaup3cuJc2HDUh6uxW/3HCnFHN1D6TEtoQqe59WO3kT8YjbLalGMCvoUD83s71Q Px0PlsWM7JZpJid1Rg1bm1nZ36kb3426gtlLJGhBZOCViG/0puZUaH2eMBRQTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738605338; a=rsa-sha256; cv=none; b=cJWOE6LmnJaQBsFy3JAYcin3wl5nkyk/Asw0oalrDdkvnb7Td+QnXxtfFXFzBgjaAFJgUV MJQfwJeO+5D2Fyrf4KugUfIg706qloqKMzs5oMWZPUZAMIfo2HUwVYwsCagY1lg36BOLIu CltQAZ0IZhJi32+4xeP5k4YJ1A+eD43tIor0P8MpUokAUC+TPMs3IeCg6OdC3zWbuFlYsC dr4q2/oVDgTILIzLecFV0nZSAa0Cb+5Ed+101dh+fBuWmUPapZcnmq2lFDls30jLNDSqYT SMctuVmUasQzCk+xmISNN78sVcItmG35j7PE7oN8NWq0LWvK1+rJdy3KSC5Wrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YmvL22N8Vzmjh; Mon, 03 Feb 2025 17:55:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 513Htcj9065101; Mon, 3 Feb 2025 17:55:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 513Htctk065098; Mon, 3 Feb 2025 17:55:38 GMT (envelope-from git) Date: Mon, 3 Feb 2025 17:55:38 GMT Message-Id: <202502031755.513Htctk065098@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 5272a12b31b4 - main - =?utf-8?Q?devel/libCello: update 1.1.7 =E2=86=92 2.1.0, improve port?= 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5272a12b31b467fc6655ba4e20d5b8b55064927c Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=5272a12b31b467fc6655ba4e20d5b8b55064927c commit 5272a12b31b467fc6655ba4e20d5b8b55064927c Author: Älven AuthorDate: 2025-01-29 10:54:02 +0000 Commit: Fernando Apesteguía CommitDate: 2025-02-03 17:54:56 +0000 devel/libCello: update 1.1.7 → 2.1.0, improve port ChangeLog: https://libcello.org/learn/best-improvements-of-cello-2.0 PR: 284068 Reported by: alster@vinterdalen.se Approved by: matthew.closson@gmail.com (maintainer, timeout > 2 weeks) --- devel/libCello/Makefile | 29 +++++++++++++++++++++-------- devel/libCello/distinfo | 5 +++-- devel/libCello/files/patch-Makefile | 36 ++++++++++++++++++------------------ devel/libCello/pkg-descr | 21 ++++++++++++++------- devel/libCello/pkg-plist | 35 ++++++++++------------------------- 5 files changed, 66 insertions(+), 60 deletions(-) diff --git a/devel/libCello/Makefile b/devel/libCello/Makefile index 851e3b8d3b35..3c0b99bcd533 100644 --- a/devel/libCello/Makefile +++ b/devel/libCello/Makefile @@ -1,20 +1,33 @@ PORTNAME= libCello -PORTVERSION= 1.1.7 -PORTREVISION= 1 +DISTVERSION= 2.1.0 CATEGORIES= devel -MASTER_SITES= http://libcello.org/static/ +MASTER_SITES= https://libcello.org/static/ MAINTAINER= matthew.closson@gmail.com COMMENT= Higher level programming in C -WWW= https://libcello.org +WWW= https://libcello.org/ \ + https://github.com/orangeduck/Cello/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= dos2unix gmake -DOS2UNIX_FILES= Makefile +USES= gmake +USE_LDCONFIG= yes -post-patch: - ${REINPLACE_CMD} -E 's| abs\(| labs\(|' ${WRKSRC}/src/*.c +MAKE_ENV= DESTDIR=${STAGEDIR} +TEST_TARGET= check + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/devel/libCello/distinfo b/devel/libCello/distinfo index f46b605f73b9..f033c5f77b9f 100644 --- a/devel/libCello/distinfo +++ b/devel/libCello/distinfo @@ -1,2 +1,3 @@ -SHA256 (libCello-1.1.7.tar.gz) = 2273fe8257109c2dd19054beecd83ddcc780ec565a1ad02721e24efa74082908 -SIZE (libCello-1.1.7.tar.gz) = 52793 +TIMESTAMP = 1736881696 +SHA256 (libCello-2.1.0.tar.gz) = 49acf6525ac6808c49f2125ecdc101626801cffe87da16736afb80684b172b28 +SIZE (libCello-2.1.0.tar.gz) = 73492 diff --git a/devel/libCello/files/patch-Makefile b/devel/libCello/files/patch-Makefile index d14b3eb49222..563f3d5df783 100644 --- a/devel/libCello/files/patch-Makefile +++ b/devel/libCello/files/patch-Makefile @@ -1,24 +1,24 @@ ---- Makefile.orig 2015-06-25 22:20:28 UTC +--- Makefile.orig 2017-01-27 09:37:38 UTC +++ Makefile -@@ -18,8 +18,8 @@ DEMOS := $(wildcard demos/*.c) - DEMOS_OBJ := $(addprefix obj/,$(notdir $(DEMOS:.c=.o))) - DEMOS_EXE := $(DEMOS:.c=) +@@ -18,7 +18,7 @@ EXAMPLES_EXE := $(EXAMPLES:.c=) + EXAMPLES_OBJ := $(addprefix obj/,$(notdir $(EXAMPLES:.c=.o))) + EXAMPLES_EXE := $(EXAMPLES:.c=) --CFLAGS = -I ./include -std=gnu99 -Wall -Werror -Wno-unused -O3 -g --LFLAGS = -shared -g -ggdb -+CFLAGS += -I ./include -std=gnu99 -Wall -Werror -Wno-unused -+LFLAGS = ${LDFLAGS} -shared +-CFLAGS = -I ./include -std=gnu99 -Wall -Wno-unused -g -ggdb ++CFLAGS += -I ./include -std=gnu99 -Wall -Wno-unused -g -ggdb PLATFORM := $(shell uname) COMPILER := $(shell $(CC) -v 2>&1 ) -@@ -42,8 +42,8 @@ else - - CFLAGS += -fPIC - +@@ -85,9 +85,9 @@ else ifeq ($(findstring FreeBSD,$(PLATFORM)),FreeBSD) + CFLAGS += -DCELLO_NSTRACE + endif + - INSTALL_LIB = mkdir -p ${LIBDIR} && cp -f ${STATIC} ${LIBDIR}/$(STATIC) -- INSTALL_INC = mkdir -p ${INCDIR} && cp -r include/* ${INCDIR} -+ INSTALL_LIB = mkdir -p ${DESTDIR}${LIBDIR} && cp -f ${STATIC} ${DESTDIR}${LIBDIR}/$(STATIC) -+ INSTALL_INC = mkdir -p ${DESTDIR}${INCDIR} && cp -r include/* ${DESTDIR}${INCDIR} - endif - - ifeq ($(findstring clang,$(COMPILER)),clang) +- INSTALL_INC = mkdir -p ${INCDIR} && cp -r include/Cello.h ${INCDIR} +- UNINSTALL_LIB = rm -f ${LIBDIR}/$(STATIC) ++ INSTALL_LIB = mkdir -p ${DESTDIR}${LIBDIR} && cp -f ${DYNAMIC} ${STATIC} ${DESTDIR}${LIBDIR} ++ INSTALL_INC = mkdir -p ${DESTDIR}${INCDIR} && cp -r include/Cello.h ${DESTDIR}${INCDIR} ++ UNINSTALL_LIB = rm -f ${DESTDIR}${LIBDIR}/{$(DYNAMIC),$(STATIC)} + UNINSTALL_INC = rm -f ${INCDIR}/Cello.h + else + PREFIX ?= /usr/local diff --git a/devel/libCello/pkg-descr b/devel/libCello/pkg-descr index 77b4824ad2d5..b2768e3e6b25 100644 --- a/devel/libCello/pkg-descr +++ b/devel/libCello/pkg-descr @@ -1,8 +1,15 @@ -Cello is a library that introduces higher level programming to C. +Cello is a library that brings higher level programming to C. -Interfaces allow for structured design -Duck Typing allows for generic functions -Exceptions control error handling -Constructors/Destructors aid memory management -Syntactic Sugar increases readability -C Library means excellent performance and integration +By acting as a modern, powerful runtime system Cello makes many things easy that +were previously impractical or awkward in C such as: + +- Generic Data Structures +- Polymorphic Functions +- Interfaces / Type Classes +- Constructors / Destructors +- Optional Garbage Collection +- Exceptions +- Reflection + +And because Cello works seamlessly alongside standard C you get all the other +benefits such as great performance, powerful tooling, and extensive libraries. diff --git a/devel/libCello/pkg-plist b/devel/libCello/pkg-plist index f8369efab7e9..ebc43005c497 100644 --- a/devel/libCello/pkg-plist +++ b/devel/libCello/pkg-plist @@ -1,27 +1,12 @@ -include/Cello/FunctionAuto.h -include/Cello/Lambda.h -include/Cello/Dictionary.h -include/Cello/Map.h -include/Cello/Reference.h -include/Cello/LambdaCurry.h -include/Cello/Table.h -include/Cello/Format.h -include/Cello/String.h -include/Cello/Value.h -include/Cello/Array.h -include/Cello/Function.h -include/Cello/Pool.h -include/Cello/Tree.h -include/Cello/Type.h -include/Cello/List.h -include/Cello/None.h -include/Cello/Module.h -include/Cello/Exception.h -include/Cello/File.h -include/Cello/Prelude.h -include/Cello/Thread.h -include/Cello/Char.h -include/Cello/Bool.h -include/Cello/Number.h include/Cello.h lib/libCello.a +lib/libCello.so +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cello_world.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/help.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/iteration.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/newtype.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/object.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ranges.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/table.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/threads.c