Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 02:05:29 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426077 - in head/sysutils: . cpu-x cpu-x/files
Message-ID:  <201611140205.uAE25Tod020402@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Nov 14 02:05:29 2016
New Revision: 426077
URL: https://svnweb.freebsd.org/changeset/ports/426077

Log:
  Add a port of CPU-X, a free software that gathers information about CPU,
  motherboard, and more on one's system, similar to CPU-Z for Windows.
  
  Because GitHub releases (tarballs) are not fetched with correct modification
  time, set TIMESTAMP to 1477420923 which corresponds to commit f10b0d4 tagged
  as this release.

Added:
  head/sysutils/cpu-x/
  head/sysutils/cpu-x/Makefile   (contents, props changed)
  head/sysutils/cpu-x/distinfo   (contents, props changed)
  head/sysutils/cpu-x/files/
  head/sysutils/cpu-x/files/patch-src_CMakeLists.txt   (contents, props changed)
  head/sysutils/cpu-x/pkg-descr   (contents, props changed)
  head/sysutils/cpu-x/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Nov 14 00:04:54 2016	(r426076)
+++ head/sysutils/Makefile	Mon Nov 14 02:05:29 2016	(r426077)
@@ -182,6 +182,7 @@
     SUBDIR += cotty
     SUBDIR += cpdup
     SUBDIR += cpu
+    SUBDIR += cpu-x
     SUBDIR += cpuburn
     SUBDIR += cpuid
     SUBDIR += cpulimit

Added: head/sysutils/cpu-x/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cpu-x/Makefile	Mon Nov 14 02:05:29 2016	(r426077)
@@ -0,0 +1,38 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	cpu-x
+PORTVERSION=	3.1.3
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Gathers information about CPU, motherboard, and more
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	nasm:devel/nasm
+LIB_DEPENDS=	libcpuid.so:sysutils/libcpuid \
+		libpci.so:devel/libpci \
+		libstatgrab.so:devel/libstatgrab
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	X0rg
+GH_PROJECT=	${PORTNAME:tu}
+
+USES=		cmake execinfo gettext-tools ncurses pkgconfig
+USE_GNOME=	gtk30
+INSTALLS_ICONS=	yes
+
+PORTDOCS=	ChangeLog README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's, -Wno-unused-result,,' ${WRKSRC}/CMakeLists.txt
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/sysutils/cpu-x/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cpu-x/distinfo	Mon Nov 14 02:05:29 2016	(r426077)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1477420923
+SHA256 (X0rg-CPU-X-v3.1.3_GH0.tar.gz) = 078de38052daf64c93ec02ced78b3b498e6e88746971518a8c27a1d04c347eda
+SIZE (X0rg-CPU-X-v3.1.3_GH0.tar.gz) = 1813830

Added: head/sysutils/cpu-x/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cpu-x/files/patch-src_CMakeLists.txt	Mon Nov 14 02:05:29 2016	(r426077)
@@ -0,0 +1,17 @@
+--- src/CMakeLists.txt.orig	2016-10-25 18:42:03 UTC
++++ src/CMakeLists.txt
+@@ -37,7 +37,13 @@ endif(WITH_GTK)
+ 
+ # NCurses
+ if(WITH_NCURSES)
+-	pkg_check_modules(NCURSES ncurses)
++	# Assume ncurses from the base on FreeBSD
++	if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
++		set(NCURSES_FOUND 1)
++		set(NCURSES_LIBRARIES "-l:libncursesw.so")
++	else()
++		pkg_check_modules(NCURSES ncurses)
++	endif()
+ 	if(NCURSES_FOUND)
+ 		include_directories(${NCURSES_INCLUDE_DIRS})
+ 		link_directories(${NCURSES_LIBRARY_DIRS})

Added: head/sysutils/cpu-x/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cpu-x/pkg-descr	Mon Nov 14 02:05:29 2016	(r426077)
@@ -0,0 +1,7 @@
+CPU-X is a free software that gathers information about CPU, motherboard, and
+more on one's system.  It is similar to well-known CPU-Z program for Windows.
+
+It can be used in graphic mode by using GTK+3, or in text-based mode by using
+ncurses.  Non-interactive dump mode is also available.
+
+WWW: http://x0rg.github.io/CPU-X/

Added: head/sysutils/cpu-x/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cpu-x/pkg-plist	Mon Nov 14 02:05:29 2016	(r426077)
@@ -0,0 +1,36 @@
+bin/cpu-x
+bin/cpu-x_polkit
+share/applications/cpu-x.desktop
+share/applications/cpu-x-root.desktop
+share/icons/hicolor/16x16/apps/cpu-x.png
+share/icons/hicolor/22x22/apps/cpu-x.png
+share/icons/hicolor/24x24/apps/cpu-x.png
+share/icons/hicolor/32x32/apps/cpu-x.png
+share/icons/hicolor/36x36/apps/cpu-x.png
+share/icons/hicolor/48x48/apps/cpu-x.png
+share/icons/hicolor/64x64/apps/cpu-x.png
+share/icons/hicolor/72x72/apps/cpu-x.png
+share/icons/hicolor/96x96/apps/cpu-x.png
+share/icons/hicolor/128x128/apps/cpu-x.png
+share/icons/hicolor/192x192/apps/cpu-x.png
+share/icons/hicolor/256x256/apps/cpu-x.png
+share/icons/hicolor/384x384/apps/cpu-x.png
+share/icons/hicolor/512x512/apps/cpu-x.png
+share/locale/fr/LC_MESSAGES/cpu-x.mo
+share/locale/pt_BR/LC_MESSAGES/cpu-x.mo
+share/polkit-1/actions/org.pkexec.cpu-x.policy
+%%DATADIR%%/AMD.png
+%%DATADIR%%/CPU-X.png
+%%DATADIR%%/Centaur.png
+%%DATADIR%%/Cyrix.png
+%%DATADIR%%/Intel.png
+%%DATADIR%%/NSC.png
+%%DATADIR%%/NexGen.png
+%%DATADIR%%/Rise.png
+%%DATADIR%%/SiS.png
+%%DATADIR%%/Transmeta.png
+%%DATADIR%%/UMC.png
+%%DATADIR%%/Unknown.png
+%%DATADIR%%/cpu-x-gtk-3.12.css
+%%DATADIR%%/cpu-x-gtk-3.12.ui
+%%DATADIR%%/cpu-x-gtk-3.20.css



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