1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 146517 2016-03-10 17:49:28Z raimue@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | PortGroup qmake 1.0 |
---|
7 | PortGroup github 1.0 |
---|
8 | |
---|
9 | github.setup litecoin-project litecoin 0.8.7.4 v |
---|
10 | revision 2 |
---|
11 | |
---|
12 | categories finance |
---|
13 | maintainers mk openmaintainer |
---|
14 | |
---|
15 | description Litecoin is a P2P Internet currency that enables instant payments to anyone in the world. |
---|
16 | long_description Litecoin is a peer-to-peer Internet currency that enables instant payments\ |
---|
17 | to anyone in the world. It is based on the Bitcoin protocol but differs\ |
---|
18 | from Bitcoin in that it can be efficiently mined with consumer-grade hardware.\ |
---|
19 | Litecoin provides faster transaction confirmations (2.5 minutes on average)\ |
---|
20 | and uses memory-hard, scrypt-based mining proof-of-work algorithm to target\ |
---|
21 | the regular computers and GPUs most people already have. The Litecoin network\ |
---|
22 | is scheduled to produce 84 million currency units.\ |
---|
23 | \ |
---|
24 | One of the aims of Litecoin was to provide a mining algorithm that could run\ |
---|
25 | at the same time, on the same hardware used to mine bitcoins. With the rise\ |
---|
26 | of specialized ASICs for Bitcoin, Litecoin continues to satisfy these goals.\ |
---|
27 | It is unlikely for ASIC mining to be developed for Litecoin until the currency\ |
---|
28 | is widely used. |
---|
29 | |
---|
30 | platforms darwin |
---|
31 | license MIT |
---|
32 | |
---|
33 | depends_lib-append port:boost \ |
---|
34 | path:lib/libssl.dylib:openssl \ |
---|
35 | port:db48 \ |
---|
36 | port:miniupnpc \ |
---|
37 | port:qrencode |
---|
38 | |
---|
39 | checksums md5 76929547d8ff674d2e55e3cfc407fb8c \ |
---|
40 | sha1 b0f0f500d95df1f9bd2b002231bf2bbfc7626663 \ |
---|
41 | rmd160 1b15d2a2e4d0797c8038e6dd8dd7cae1816e1a48 |
---|
42 | |
---|
43 | # This is necessary for version 0.8.5.1 due to a stealth update |
---|
44 | dist_subdir ${name}/${version}_1 |
---|
45 | |
---|
46 | livecheck.type regex |
---|
47 | livecheck.url http://litecoin.org |
---|
48 | livecheck.regex "macosx/Litecoin-Qt-(0\\.\\d+\\.\\d+\\.\\d+)\\.dmg" |
---|
49 | |
---|
50 | use_parallel_build yes |
---|
51 | |
---|
52 | pre-configure { |
---|
53 | reinplace "s|/opt/local|${prefix}|" ${worksrcpath}/bitcoin-qt.pro |
---|
54 | configure.pre_args-append USE_QRCODE=1 INCLUDEPATH+="${prefix}/include/db48/" LIBS+="-L${prefix}/lib/db48" |
---|
55 | } |
---|
56 | |
---|
57 | if {$subport == $name} { |
---|
58 | destroot { |
---|
59 | xinstall -m 0755 -d ${destroot}${qt_apps_dir} |
---|
60 | file copy ${worksrcpath}/Litecoin-Qt.app ${destroot}${qt_apps_dir} |
---|
61 | } |
---|
62 | } |
---|
63 | |
---|
64 | subport litecoind { |
---|
65 | replaced_by litecoin |
---|
66 | PortGroup obsolete 1.0 |
---|
67 | revision 1 |
---|
68 | |
---|
69 | description Litecoin's mining daemon litecoind alone. (Not recommended for installation anymore!) |
---|
70 | long_description $description |
---|
71 | } |
---|