Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2012 11:21:38 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307171 - head/deskutils/fet
Message-ID:  <201211081121.qA8BLcbr058953@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Thu Nov  8 11:21:37 2012
New Revision: 307171
URL: http://svnweb.freebsd.org/changeset/ports/307171

Log:
  - Update to 5.18.2
  - Remove name of port from COMMENT
  - Move LICENSE to correct location and mark it GPLv2 or GPLv3
  - Respect MANPREFIX
  - Add NLS option
  - Whitespace cleanup
  - Convert to new options framework
  - Trim Makefile header
  - Tab -> space in pkg-descr WWW line
  
  PR:		Based on ports/168679
  Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com>
  Approved by:	maintainer timeout (5 months)
  		makc, avilla (mentors, implicit)
  Feature safe:	yes

Added:
  head/deskutils/fet/pkg-plist   (contents, props changed)
Modified:
  head/deskutils/fet/Makefile   (contents, props changed)
  head/deskutils/fet/distinfo   (contents, props changed)
  head/deskutils/fet/pkg-descr   (contents, props changed)

Modified: head/deskutils/fet/Makefile
==============================================================================
--- head/deskutils/fet/Makefile	Thu Nov  8 11:16:48 2012	(r307170)
+++ head/deskutils/fet/Makefile	Thu Nov  8 11:21:37 2012	(r307171)
@@ -1,13 +1,8 @@
-# New ports collection makefile for:	fet
-# Date created:				11 March 2010
-# Whom:					Leinier Cruz Salfran <salfrancl@yahoo.es>
-#
+# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
 # $FreeBSD$
-#
 
 PORTNAME=	fet
-PORTVERSION=	5.14.2
-PORTREVISION=	1
+PORTVERSION=	5.18.2
 CATEGORIES=	deskutils kde
 MASTER_SITES=	http://lalescu.ro/liviu/fet/download/ \
 		http://lalescu.ro/liviu/fet/download/old/ \
@@ -15,44 +10,54 @@ MASTER_SITES=	http://lalescu.ro/liviu/fe
 		http://timetabling.de/download/old/
 
 MAINTAINER=	salfrancl@yahoo.es
-COMMENT=	FET is free timetabling software
+COMMENT=	Free timetabling software
+
+LICENSE=	GPLv2 GPLv3
+LICENSE_COMB=	dual
 
 USE_BZIP2=	yes
-USE_QT4=	gui network qt3support xml \
+USE_QT4=	gui network xml \
 		moc_build qmake_build rcc_build uic_build
 HAS_CONFIGURE=	yes
-QMAKE_ARGS=	-unix PREFIX=${PREFIX} \
-		INCLUDEPATH+=${LOCALBASE}/include \
-		LIBS+=-L${LOCALBASE}/lib
 MAKE_JOBS_SAFE=	yes
 
-LICENSE=	GPLv2
-
-PLIST_FILES=	bin/fet
 MAN1=		fet.1
-.ifndef(NOPORTEXAMPLES)
+
 PORTEXAMPLES=	*
+
+DESKTOP_ENTRIES="FET" \
+		"Free timetable software" \
+		"" \
+		"fet" \
+		"Application;Education;Qt;" \
+		true
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
 .endif
 
-DESKTOP_ENTRIES=	"FET" \
-			"Free timetable software" \
-			"" \
-			"fet" \
-			"Application;Education;Qt;" \
-			true
+post-patch:
+	${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \
+		${WRKSRC}/src/interface/fet.cpp
 
 do-configure:
 	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
 		${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS}
 
 do-install:
-	${MKDIR} ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/fet ${PREFIX}/bin
-	${MKDIR} ${PREFIX}/man/man1
-	${INSTALL_MAN} ${WRKSRC}/doc/fet.1 ${PREFIX}/man/man1
-.ifndef(NOPORTEXAMPLES)
+	${INSTALL_MAN} ${WRKSRC}/doc/fet.1 ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MEXAMPLES}
 	${MKDIR} ${EXAMPLESDIR}
 	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \. ${EXAMPLESDIR}
 .endif
+.if ${PORT_OPTIONS:MNLS}
+	${MKDIR} ${DATADIR}/translations
+	cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${DATADIR}/translations
+.endif
 
 .include <bsd.port.mk>

Modified: head/deskutils/fet/distinfo
==============================================================================
--- head/deskutils/fet/distinfo	Thu Nov  8 11:16:48 2012	(r307170)
+++ head/deskutils/fet/distinfo	Thu Nov  8 11:21:37 2012	(r307171)
@@ -1,2 +1,2 @@
-SHA256 (fet-5.14.2.tar.bz2) = fc6849ef410936f7167a1683608228c89ddd9d6caaee3c7b8b6b6fdebd3ca2f9
-SIZE (fet-5.14.2.tar.bz2) = 5972903
+SHA256 (fet-5.18.2.tar.bz2) = bead2ff4bd67733e26c81973a8fac3fcb0f08e22a2450d6c971ecf2c7e39fea8
+SIZE (fet-5.18.2.tar.bz2) = 7676275

Modified: head/deskutils/fet/pkg-descr
==============================================================================
--- head/deskutils/fet/pkg-descr	Thu Nov  8 11:16:48 2012	(r307170)
+++ head/deskutils/fet/pkg-descr	Thu Nov  8 11:21:37 2012	(r307171)
@@ -10,4 +10,4 @@ difficult timetables, it may take a long
 FET can mean "Free Educational Timetabling" (the "E" in the middle
 may also stand for other words, based on your personal preference).
 
-WWW:	http://lalescu.ro/liviu/fet/
+WWW: http://lalescu.ro/liviu/fet/

Added: head/deskutils/fet/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/fet/pkg-plist	Thu Nov  8 11:21:37 2012	(r307171)
@@ -0,0 +1,32 @@
+bin/fet
+%%NLS%%%%DATADIR%%/translations/fet_ar.qm
+%%NLS%%%%DATADIR%%/translations/fet_ca.qm
+%%NLS%%%%DATADIR%%/translations/fet_da.qm
+%%NLS%%%%DATADIR%%/translations/fet_de.qm
+%%NLS%%%%DATADIR%%/translations/fet_el.qm
+%%NLS%%%%DATADIR%%/translations/fet_es.qm
+%%NLS%%%%DATADIR%%/translations/fet_fa.qm
+%%NLS%%%%DATADIR%%/translations/fet_fr.qm
+%%NLS%%%%DATADIR%%/translations/fet_gl.qm
+%%NLS%%%%DATADIR%%/translations/fet_he.qm
+%%NLS%%%%DATADIR%%/translations/fet_hu.qm
+%%NLS%%%%DATADIR%%/translations/fet_id.qm
+%%NLS%%%%DATADIR%%/translations/fet_it.qm
+%%NLS%%%%DATADIR%%/translations/fet_lt.qm
+%%NLS%%%%DATADIR%%/translations/fet_mk.qm
+%%NLS%%%%DATADIR%%/translations/fet_ms.qm
+%%NLS%%%%DATADIR%%/translations/fet_nl.qm
+%%NLS%%%%DATADIR%%/translations/fet_pl.qm
+%%NLS%%%%DATADIR%%/translations/fet_pt_BR.qm
+%%NLS%%%%DATADIR%%/translations/fet_ro.qm
+%%NLS%%%%DATADIR%%/translations/fet_ru.qm
+%%NLS%%%%DATADIR%%/translations/fet_si.qm
+%%NLS%%%%DATADIR%%/translations/fet_sk.qm
+%%NLS%%%%DATADIR%%/translations/fet_sr.qm
+%%NLS%%%%DATADIR%%/translations/fet_tr.qm
+%%NLS%%%%DATADIR%%/translations/fet_uk.qm
+%%NLS%%%%DATADIR%%/translations/fet_untranslated.qm
+%%NLS%%%%DATADIR%%/translations/fet_uz.qm
+%%NLS%%%%DATADIR%%/translations/fet_vi.qm
+%%NLS%%@dirrm %%DATADIR%%/translations
+%%NLS%%@dirrm %%DATADIR%%



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