Bug 179948 - [MAINTAINER] graphics/founts: Trim to use only GCC, add desktop entry
Summary: [MAINTAINER] graphics/founts: Trim to use only GCC, add desktop entry
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-25 08:50 UTC by nemysis
Modified: 2013-06-25 13:50 UTC (History)
1 user (show)

See Also:


Attachments
founts-12_1.patch (2.22 KB, patch)
2013-06-25 08:50 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-25 08:50:02 UTC
- Bump portrevision
- Shorten header
- Trim master sites
- Add Icons
- Remove leading article from COMMENT
- Trim to use only GCC
- Trim PLIST_FILES
- Add DOCS Option
- Add Desktop entry file

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20130625064601-22939/
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-06-25 12:59:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-06-25 13:47:15 UTC
Author: wg
Date: Tue Jun 25 12:47:07 2013
New Revision: 321741
URL: http://svnweb.freebsd.org/changeset/ports/321741

Log:
  graphics/founts: minor fixes
  
  - Trim Makefile header [1]
  - Remove leading article from COMMENT [1]
  - Add DOCS option [1]
  - Install desktop entry/icon [1]
  - Fix build with clang
  
  PR:		ports/179948
  Submitted by:	nemysis <nemysis@gmx.ch> [1] (maintainer)

Modified:
  head/graphics/founts/Makefile
  head/graphics/founts/distinfo

Modified: head/graphics/founts/Makefile
==============================================================================
--- head/graphics/founts/Makefile	Tue Jun 25 12:36:58 2013	(r321740)
+++ head/graphics/founts/Makefile	Tue Jun 25 12:47:07 2013	(r321741)
@@ -1,27 +1,34 @@
-# New Ports collection makefile for:	founts
-# Date created:		2012-05-01
-# Whom:			nemysis@gmx.ch
-#
+# Created by: nemysis <nemysis@gmx.ch>
 # $FreeBSD$
-#
 
 PORTNAME=	founts
 PORTVERSION=	12
+PORTREVISION=	1
 CATEGORIES=	graphics games
-MASTER_SITES=	http://www.linuxmotors.com/founts/downloads/
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	http://www.linuxmotors.com/founts/downloads/ \
+		SF/nemysisfreebsdp/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}.tgz \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}.tgz
 
 MAINTAINER=	nemysis@gmx.ch
-COMMENT=	A demo/program inspired by Erics cascade
+COMMENT=	Demo/program inspired by Erics cascade
 
 LICENSE=	GPLv2
 
 USE_SDL=	sdl
+CFLAGS=		-Wno-return-type
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
 
 PORTDOCS=	Changelog README
 
+OPTIONS_DEFINE=	DOCS
+
+DESKTOP_ENTRIES="Founts" "${COMMENT}" "${PORTNAME}" \
+		"${PORTNAME}" "Graphics;Game;" false
+
 .include <bsd.port.options.mk>
 
 do-build:
@@ -29,15 +36,12 @@ do-build:
 		-lm `${SDL_CONFIG} --cflags --libs` founts.c
 
 do-install:
-# Executable
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
 
-# Documentation
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.  for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.  endfor
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/founts/distinfo
==============================================================================
--- head/graphics/founts/distinfo	Tue Jun 25 12:36:58 2013	(r321740)
+++ head/graphics/founts/distinfo	Tue Jun 25 12:47:07 2013	(r321741)
@@ -1,2 +1,4 @@
 SHA256 (founts-12.tgz) = 46da7a97eef91c162c946914dc81ab523963b4a5faebdf2bfd8482f32a485a8a
 SIZE (founts-12.tgz) = 21447
+SHA256 (founts.png) = a8e1dd4ddd78fef3b60e858d4fdc38cdb1388c999031f9306849a09ae0a977d6
+SIZE (founts.png) = 6266
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 William Grzybowski freebsd_committer freebsd_triage 2013-06-25 13:47:34 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!