Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2019 16:36:05 +0000 (UTC)
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r509007 - in head/editors/lazarus: . files
Message-ID:  <201908151636.x7FGa5J1011003@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: acm
Date: Thu Aug 15 16:36:04 2019
New Revision: 509007
URL: https://svnweb.freebsd.org/changeset/ports/509007

Log:
  - Update to 2.0.4
  - Remove LD_UNSAFE. It is defined in lang/fpc
  - Few minor modifications
  - Change LAZARUS_DEFAULT to 2.0.4
  - Add lang/fpc-source to RUN_DEPENDS

Modified:
  head/editors/lazarus/Makefile
  head/editors/lazarus/distinfo
  head/editors/lazarus/files/pkg-message.in

Modified: head/editors/lazarus/Makefile
==============================================================================
--- head/editors/lazarus/Makefile	Thu Aug 15 16:19:36 2019	(r509006)
+++ head/editors/lazarus/Makefile	Thu Aug 15 16:36:04 2019	(r509007)
@@ -1,9 +1,9 @@
 # $FreeBSD$
 
 PORTNAME=	lazarus
-PORTVERSION=	2.0.0
+PORTVERSION=	2.0.4
 PKGNAMESUFFIX?=  -gtk2
-PORTREVISION?=	1
+PORTREVISION?=	0
 CATEGORIES=	editors devel
 MASTER_SITES=	SF/${PORTNAME}/Lazarus%20Zip%20_%20GZip/Lazarus%20${PORTVERSION} \
 		LOCAL/acm/freepascal
@@ -15,11 +15,12 @@ COMMENT?=	Portable Delphi-like IDE for the FreePascal 
 CONFLICTS?=	${PORTNAME}-qt5-*
 
 BUILD_DEPENDS?=	fpcres:lang/fpc-utils
-RUN_DEPENDS?=	fpcres:lang/fpc-utils
+RUN_DEPENDS?=	fpcres:lang/fpc-utils \
+		${LOCALBASE}/share/fpc-source-${FPC_DEFAULT}/Makefile.fpc:lang/fpc-source
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-USES=		fpc gettext gmake iconv
+USES=		desktop-file-utils fpc gettext gmake iconv shared-mime-info
 USE_FPC?=	chm cairo dblib fcl-base fcl-db fcl-fpcunit fcl-image fcl-json fcl-net \
 		fcl-registry fcl-res fcl-web fcl-xml fppkg gtk2 ibase iconvenc mysql \
 		numlib odbc opengl openssl oracle pasjpeg postgres regexpr rtl-extra \
@@ -31,7 +32,6 @@ MAKE_ENV=	OPT=${OPT}
 PLIST=		${WRKDIR}/pkg-plist
 WRKSRC?=	${WRKDIR}/${PORTNAME}
 DATADIR?=	${PREFIX}/share/${PORTNAME}-${PORTVERSION}
-LLD_UNSAFE=	yes
 
 OPTIONS_DEFINE=		GDB
 GDB_DESC=		Install a newest version  of gdb
@@ -67,6 +67,7 @@ post-extract:
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${MAKEFILE}
+	@${REINPLACE_CMD} -e 's|startlazarus|${PORTNAME}|g' ${WRKSRC}/install/${PORTNAME}.desktop
 
 do-build:
 	@cd ${WRKSRC} && \
@@ -109,6 +110,18 @@ pre-install:
 		${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
 		${FIND} * -type d -empty | ${SORT} | ${SED} -e 's|^|@dir %%DATADIR%%/|' >> ${PLIST}
 
+	@${ECHO_CMD} "share/applications/lazarus.desktop" >> ${PLIST}
+
+.	for RESO in 128 16 256 32 48 64
+		@${ECHO_CMD} share/icons/hicolor/${RESO}x${RESO}/apps/lazarus.png >> ${PLIST}
+.	endfor
+
+	@cd ${WRKSRC}/images/mimetypes && \
+		${FIND} * -type f -name "*.png" | ${SORT} | ${SED} -e 's|^|share/icons/hicolor/48x48/mimetypes/|' >> ${PLIST}
+
+	@${ECHO_CMD} "share/icons/hicolor/scalable/apps/lazarus.svg" >> ${PLIST}
+	@${ECHO_CMD} "share/mime/packages/lazarus.xml" >> ${PLIST}
+
 do-install:
 .for DIRE in components converter debugger designer doceditor ide images install languages lazarus.app lcl \
 	packager tools units
@@ -133,6 +146,24 @@ do-install:
 		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
 			${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${EXAMPLESDIR}/{}" \;
 	@${LN} -s ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
+
+
+.for RESO in 128 16 256 32 48 64
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${RESO}x${RESO}/apps
+	${INSTALL_DATA} ${WRKSRC}/images/icons/${PORTNAME}${RESO}x${RESO}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${RESO}x${RESO}/apps/${PORTNAME}.png
+.endfor
+
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/mimetypes
+	@cd ${WRKSRC}/images/mimetypes && \
+		${FIND} * -type f -name "*.png" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/mimetypes/{} \;
+
+	@${INSTALL_DATA} ${WRKSRC}/install/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
+
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+	@${INSTALL_DATA} ${WRKSRC}/images/icons/${PORTNAME}.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg
+
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
+	@${INSTALL_DATA} ${WRKSRC}/install/${PORTNAME}-mime.xml ${STAGEDIR}${PREFIX}/share/mime/packages/${PORTNAME}.xml
 
 	${INSTALL_SCRIPT} ${WRKSRC}/localize.sh ${STAGEDIR}${DATADIR}
 	${INSTALL_SCRIPT} ${WRKDIR}/lazarus-wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

Modified: head/editors/lazarus/distinfo
==============================================================================
--- head/editors/lazarus/distinfo	Thu Aug 15 16:19:36 2019	(r509006)
+++ head/editors/lazarus/distinfo	Thu Aug 15 16:36:04 2019	(r509007)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1551539368
-SHA256 (freepascal/lazarus-2.0.0.tar.gz) = a6d7f3d0476defd9f4bf82a556bac18167832833937aabc0d495868b7dc67d6e
-SIZE (freepascal/lazarus-2.0.0.tar.gz) = 65507695
+TIMESTAMP = 1565154861
+SHA256 (freepascal/lazarus-2.0.4.tar.gz) = e01d10c1b08fdb9b98fa8f740536add804383e4f39f092059c5e4ac7516c147b
+SIZE (freepascal/lazarus-2.0.4.tar.gz) = 65556293

Modified: head/editors/lazarus/files/pkg-message.in
==============================================================================
--- head/editors/lazarus/files/pkg-message.in	Thu Aug 15 16:19:36 2019	(r509006)
+++ head/editors/lazarus/files/pkg-message.in	Thu Aug 15 16:36:04 2019	(r509007)
@@ -11,11 +11,10 @@ The Lazarus RAD was installed
    source directory at lazarus configuration environment. Also it could be
    setting later.
 
-3) You can obtain freepascal source code from:
+3) Now you can obtain freepascal source installing lang/fpc-source port or 
+   package
 
-   %%PORTSDIR%%/distfiles/freepascal
-
-   It could be extracted to your home directory.
+   It will be extracted to %%LOCALBASE%%/share/fpc-source-X.X.X
 
 4) You can use %%LOCALBASE%%/bin/gdb debugger instead of gdb installed debugger
    installed from base system. Lazarus works better with this version.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908151636.x7FGa5J1011003>