From owner-svn-ports-all@FreeBSD.ORG Thu May 30 04:23:49 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E169F971; Thu, 30 May 2013 04:23:49 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C3999C05; Thu, 30 May 2013 04:23:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4U4Nnti004845; Thu, 30 May 2013 04:23:49 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4U4NmLo004836; Thu, 30 May 2013 04:23:48 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201305300423.r4U4NmLo004836@svn.freebsd.org> From: Steve Wills Date: Thu, 30 May 2013 04:23:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319403 - in head/net-p2p: . litecoin litecoin/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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 04:23:50 -0000 Author: swills Date: Thu May 30 04:23:48 2013 New Revision: 319403 URL: http://svnweb.freebsd.org/changeset/ports/319403 Log: Litecoin is a peer-to-peer Internet currency that enables instant payments to anyone in the world. It is based on the Bitcoin protocol but differs from Bitcoin in that it can be efficiently mined with consumer-grade hardware. Litecoin provides faster transaction confirmations (2.5 minutes on average) and uses memory-hard, scrypt-based mining proof-of-work algorithm to target the regular computers and GPUs most people already have. The Litecoin network is scheduled to produce 84 million currency units. One of the aims of Litecoin was to provide a mining algorithm that could run at the same time, on the same hardware used to mine bitcoins. With the rise of specialized ASICs for Bitcoin, Litecoin continues to satisfy these goals. It is unlikely for ASIC mining to be developed for Litecoin until the currency is widely used. WWW: http://www.litecoin.org/ Added: head/net-p2p/litecoin/ head/net-p2p/litecoin/Makefile (contents, props changed) head/net-p2p/litecoin/distinfo (contents, props changed) head/net-p2p/litecoin/files/ head/net-p2p/litecoin/files/patch-qtipserver_cpp (contents, props changed) head/net-p2p/litecoin/files/patch-src-makefile.unix (contents, props changed) head/net-p2p/litecoin/pkg-descr (contents, props changed) Modified: head/net-p2p/Makefile Modified: head/net-p2p/Makefile ============================================================================== --- head/net-p2p/Makefile Thu May 30 02:15:22 2013 (r319402) +++ head/net-p2p/Makefile Thu May 30 04:23:48 2013 (r319403) @@ -51,6 +51,7 @@ SUBDIR += libtorrent-rasterbar-16-python SUBDIR += linux-jigdo SUBDIR += linuxdcpp + SUBDIR += litecoin SUBDIR += lopster SUBDIR += microdc2 SUBDIR += minder Added: head/net-p2p/litecoin/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/Makefile Thu May 30 04:23:48 2013 (r319403) @@ -0,0 +1,101 @@ +# Created by: Steve Wills +# $FreeBSD$ + +PORTNAME= litecoin +PORTVERSION= 0.6.3c +CATEGORIES= net-p2p finance + +MAINTAINER= swills@FreeBSD.org +COMMENT= Virtual Peer-to-Peer Currency Software + +LIB_DEPENDS= boost_date_time:${PORTSDIR}/devel/boost-libs + +USE_GITHUB= yes +GH_ACCOUNT= litecoin-project +GH_COMMIT= af9b6da +GH_TAGNAME= v${PORTVERSION} + +USE_OPENSSL= yes +USE_BDB= yes +WANT_BDB_VER= 48 + +USE_GMAKE= yes + +OPTIONS_DEFINE= GUI UPNP QRCODES DBUS +OPTIONS_DEFAULT= GUI QRCODES + +GUI_DESC= Build as a QT4 GUI +UPNP_DESC= Build with UPNP support +QRCODES_DESC= Build with QR code display +DBUS_DESC= Build with DBUS support + +CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} +CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} + +.include + +.if ${PORT_OPTIONS:MUPNP} +LIB_DEPENDS+= miniupnpc:${PORTSDIR}/net/miniupnpc +QMAKE_USE_UPNP= 1 +.else +QMAKE_USE_UPNP= - +.endif + +.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) +USE_QT4= qmake_build linguist uic moc rcc +BINARY= litecoin-qt +.else +BINARY= litecoind +MAKEFILE= makefile.unix +ALL_TARGET= ${BINARY} +MAKE_ARGS+= -C ${WRKSRC}/src USE_UPNP=${QMAKE_USE_UPNP} +.endif + +PLIST_FILES= bin/${BINARY} + +.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) && ${PORT_OPTIONS:MQRCODES} +LIB_DEPENDS+= qrencode:${PORTSDIR}/graphics/libqrencode +QMAKE_USE_QRCODE=1 +.else +QMAKE_USE_QRCODE=0 +.endif + +.if ${PORT_OPTIONS:MDBUS} +USE_QT4+= dbus +QMAKE_USE_DBUS= 1 +.else +QMAKE_USE_DBUS= 0 +.endif + +.include + +do-configure: +.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) + cd ${BUILD_WRKSRC} && \ + ${QMAKE} PREFIX=${PREFIX} -spec ${QMAKESPEC} ${QMAKEFLAGS} \ + QMAKE_LIBDIR+=${BDB_LIB_DIR} \ + QMAKE_LRELEASE=${LOCALBASE}/bin/lrelease-qt4 \ + USE_UPNP=${QMAKE_USE_UPNP} \ + USE_QRCODE=${QMAKE_USE_QRCODE} \ + USE_DBUS=${QMAKE_USE_DBUS} \ + litecoin-qt.pro +.endif + +do-install: + @${MKDIR} ${PREFIX}/bin +.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) + ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/ +.else + ${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${PREFIX}/bin/ +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/makefile.unix + +regression-test: +.if !${PORT_OPTIONS:MGUI} || defined(WITHOUT_X11) + @${GMAKE} -C ${WRKSRC}/src -f makefile.unix USE_UPNP=${QMAKE_USE_UPNP} test_litecoin + (cd ${WRKSRC}/src ; ./test_litecoin) +.endif + +.include Added: head/net-p2p/litecoin/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/distinfo Thu May 30 04:23:48 2013 (r319403) @@ -0,0 +1,2 @@ +SHA256 (litecoin-0.6.3c.tar.gz) = a24f145942a91742cee2870b7e43f930edbd81db4e0478e3e91e880d201655b8 +SIZE (litecoin-0.6.3c.tar.gz) = 1480752 Added: head/net-p2p/litecoin/files/patch-qtipserver_cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/files/patch-qtipserver_cpp Thu May 30 04:23:48 2013 (r319403) @@ -0,0 +1,13 @@ +--- src/qt/qtipcserver.cpp.orig 2012-07-26 17:55:22.000000000 +1000 ++++ src/qt/qtipcserver.cpp 2013-05-28 16:10:27.000000000 +1000 +@@ -55,6 +55,10 @@ + // problems. + return; + #endif ++#ifdef __FreeBSD__ ++ // TODO: Fix it for FreeBSD too - ipcinit causes a spinlock ++ return; ++#endif + + message_queue* mq; + char strBuf[257]; Added: head/net-p2p/litecoin/files/patch-src-makefile.unix ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/files/patch-src-makefile.unix Thu May 30 04:23:48 2013 (r319403) @@ -0,0 +1,22 @@ +--- src/makefile.unix.orig 2012-07-26 07:55:22.000000000 +0000 ++++ src/makefile.unix 2013-05-30 03:57:45.000000000 +0000 +@@ -6,6 +6,11 @@ + + DEFS=-DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE + ++BOOST_INCLUDE_PATH=%%PREFIX%%/include ++BDB_INCLUDE_PATH=%%PREFIX%%/include/db48 ++BOOST_LIB_PATH=%%PREFIX%%/lib ++BDB_LIB_PATH=%%PREFIX%%/lib/db48 ++ + DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) + LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) + +@@ -44,7 +49,6 @@ + LIBS+= \ + -Wl,-B$(LMODE2) \ + -l z \ +- -l dl \ + -l pthread + + Added: head/net-p2p/litecoin/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/pkg-descr Thu May 30 04:23:48 2013 (r319403) @@ -0,0 +1,15 @@ +Litecoin is a peer-to-peer Internet currency that enables instant payments to +anyone in the world. It is based on the Bitcoin protocol but differs from +Bitcoin in that it can be efficiently mined with consumer-grade hardware. +Litecoin provides faster transaction confirmations (2.5 minutes on average) and +uses memory-hard, scrypt-based mining proof-of-work algorithm to target the +regular computers and GPUs most people already have. The Litecoin network is +scheduled to produce 84 million currency units. + +One of the aims of Litecoin was to provide a mining algorithm that could run at +the same time, on the same hardware used to mine bitcoins. With the rise of +specialized ASICs for Bitcoin, Litecoin continues to satisfy these goals. It is +unlikely for ASIC mining to be developed for Litecoin until the currency is +widely used. + +WWW: http://www.litecoin.org/