From owner-svn-ports-head@freebsd.org Sat May 6 20:33:42 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C7BCD6157E; Sat, 6 May 2017 20:33:42 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 393D8B53; Sat, 6 May 2017 20:33:42 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v46KXf3B040586; Sat, 6 May 2017 20:33:41 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v46KXeSw040580; Sat, 6 May 2017 20:33:40 GMT (envelope-from se@FreeBSD.org) Message-Id: <201705062033.v46KXeSw040580@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: Stefan Esser Date: Sat, 6 May 2017 20:33:40 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 May 2017 20:33:42 -0000 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 +# $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 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