Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2017 20:33:40 +0000 (UTC)
From:      Stefan Esser <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r440289 - in head/games: . gogrepo gogrepo/files
Message-ID:  <201705062033.v46KXeSw040580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Sat May  6 20:33:40 2017
New Revision: 440289
URL: https://svnweb.freebsd.org/changeset/ports/440289

Log:
  Batch downloader for games distributed by GOG.com (Good Old Games).
  
  A number of Linux games distributed by GOG.com should be usable under
  Linux emulation on FreeBSD, but none has actually been tested.
  
  Approved by:	antoine (mentor)

Added:
  head/games/gogrepo/
  head/games/gogrepo/Makefile   (contents, props changed)
  head/games/gogrepo/distinfo   (contents, props changed)
  head/games/gogrepo/files/
  head/games/gogrepo/files/patch-gogrepo.py   (contents, props changed)
  head/games/gogrepo/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sat May  6 20:13:10 2017	(r440288)
+++ head/games/Makefile	Sat May  6 20:33:40 2017	(r440289)
@@ -377,6 +377,7 @@
     SUBDIR += gnushogi
     SUBDIR += gnustep-ladder
     SUBDIR += gnustep-sudoku
+    SUBDIR += gogrepo
     SUBDIR += golddig
     SUBDIR += goldencheetah
     SUBDIR += golly

Added: head/games/gogrepo/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gogrepo/Makefile	Sat May  6 20:33:40 2017	(r440289)
@@ -0,0 +1,36 @@
+# Created by: Stefan Esser <se@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	gogrepo
+PORTVERSION=	0.3a
+CATEGORIES=	games net
+
+MAINTAINER=	se@FreeBSD.org
+COMMENT=	Batch downloader for (linux,mac,windows) games distributed by GOG.com
+
+LICENSE=	GPLv3+
+
+RUN_DEPENDS=	${PYTHONPREFIX_SITELIBDIR}/html5lib/html5parser.py:www/py-html5lib \
+		html2text:textproc/py-html2text
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	eddie3
+GH_TAGNAME=	c7f3dd0
+
+USES=		python shebangfix
+SHEBANG_FILES=	gogrepo.py
+
+OPTIONS_DEFINE=	DOCS
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	bin/gogrepo
+PORTDOCS=	README.md
+
+do-install:
+		${INSTALL_SCRIPT} ${WRKSRC}/gogrepo.py ${STAGEDIR}${PREFIX}/bin/gogrepo
+		${MKDIR} ${STAGEDIR}${DOCSDIR}
+		${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
+
+.include <bsd.port.mk>

Added: head/games/gogrepo/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gogrepo/distinfo	Sat May  6 20:33:40 2017	(r440289)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490357927
+SHA256 (eddie3-gogrepo-0.3a-c7f3dd0_GH0.tar.gz) = d6c35a08dc9d0d311dd93a767c197d17cb2f863d75c6d2febe3ce2d0ea6abf1e
+SIZE (eddie3-gogrepo-0.3a-c7f3dd0_GH0.tar.gz) = 15045

Added: head/games/gogrepo/files/patch-gogrepo.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gogrepo/files/patch-gogrepo.py	Sat May  6 20:33:40 2017	(r440289)
@@ -0,0 +1,29 @@
+--- gogrepo.py.orig	2017-04-18 19:27:22 UTC
++++ gogrepo.py
+@@ -4,7 +4,7 @@ from __future__ import print_function
+ from __future__ import division
+ from __future__ import unicode_literals
+ 
+-__appname__ = 'gogrepo.py'
++__appname__ = 'gogrepo'
+ __author__ = 'eddie3'
+ __version__ = '0.3a'
+ __url__ = 'https://github.com/eddie3/gogrepo'
+@@ -110,7 +110,7 @@ HTTP_GAME_DOWNLOADER_THREADS = 4
+ HTTP_PERM_ERRORCODES = (404, 403, 503)
+ 
+ # Save manifest data for these os and lang combinations
+-DEFAULT_OS_LIST = ['windows']
++DEFAULT_OS_LIST = ['linux']
+ DEFAULT_LANG_LIST = ['en']
+ 
+ # These file types don't have md5 data from GOG
+@@ -575,7 +575,7 @@ def cmd_login(user, passwd):
+ 
+     # perform two-step if needed
+     if login_data['two_step_url'] is not None:
+-        login_data['two_step_security_code'] = input("enter two-step security code: ")
++        login_data['two_step_security_code'] = input("enter two-step security code (sent by mail): ")
+ 
+         # Send the security code back to GOG
+         with request(login_data['two_step_url'], delay=0,

Added: head/games/gogrepo/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gogrepo/pkg-descr	Sat May  6 20:33:40 2017	(r440289)
@@ -0,0 +1,12 @@
+A Python-based tool for downloading your GOG.com game collections and
+extras to your local computer for full offline enjoyment.
+
+It is a clean standalone python script that can be run from anywhere.
+It requires a typical Python 2.7 or 3.x installation and html5lib.
+
+By default, game folders are saved in the same location that the script
+is run in. You can also specify another directory. Run gogrepo.py -h to
+see help or read more below. Each game has its own directories with all
+game/bonus files saved within.
+
+WWW: http://github.com/eddie3/gogrepo



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