summaryrefslogtreecommitdiff
path: root/dev-vcs/git-annex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-vcs/git-annex
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-vcs/git-annex')
-rw-r--r--dev-vcs/git-annex/Manifest11
-rw-r--r--dev-vcs/git-annex/files/git-annex-5.20150731-no-strange-installs.patch9
-rw-r--r--dev-vcs/git-annex/files/git-annex-6.20160114-QC-2.8.2.patch16
-rw-r--r--dev-vcs/git-annex/files/git-annex-6.20161210-directory-1.3.patch9
-rw-r--r--dev-vcs/git-annex/files/git-annex-6.20170101-crypto-api.patch8
-rw-r--r--dev-vcs/git-annex/files/git-annex.bash19
-rw-r--r--dev-vcs/git-annex/files/git-annex.xpm47
-rw-r--r--dev-vcs/git-annex/git-annex-6.20170818.ebuild161
-rw-r--r--dev-vcs/git-annex/metadata.xml34
9 files changed, 314 insertions, 0 deletions
diff --git a/dev-vcs/git-annex/Manifest b/dev-vcs/git-annex/Manifest
new file mode 100644
index 000000000000..4f62bfd2c0cd
--- /dev/null
+++ b/dev-vcs/git-annex/Manifest
@@ -0,0 +1,11 @@
+AUX git-annex-5.20150731-no-strange-installs.patch 239 SHA256 8626e3e04f63022e7a69992e7316165e7109f503b086a5d6d2339af7079745e5 SHA512 cc681590d5036c88f516237c68a10c8abbfc0643d4f9c690c22c5eaccdc043b80caac65cf7d3c659748f6b94ccd6809daeeb25a71dee6b04d0d56654aef50a46 WHIRLPOOL 9dc9f59e470f2f6548dcbb6dc0dc890d7dd1a57cd862412b84dd9a33ac67d76488b75a34e045411bee6aa689ac0caa124a0193e5198cad64b6ef6626afd76c73
+AUX git-annex-6.20160114-QC-2.8.2.patch 509 SHA256 0d181d974acef5102294917eeffed276bd07158d00fb615379121cfe7ac1fcf2 SHA512 2df4f294bd8e39a067cdf7adf0f44d08a7910d7954529d053fd35d35b263dc891ecb1390427783c3448d660e918b6076c86e6c01145f272226c20c8d7688cd1c WHIRLPOOL 38ad28b89e0b02ef33b86f92a1edbc088fdfef32649a88e7c177fe26788352242291d2d77d17c5442a568e5778a8ce2fdbc66cdf41f821e62673de74f248bb88
+AUX git-annex-6.20161210-directory-1.3.patch 279 SHA256 85d01cb4c2f660c05821afcc60d4ef4ca145c5a86df21f009dbcc8e28548a18a SHA512 6247c9d8221ec3c1090d6cd66fbf525ea429e64ade0820a54d5116d69c36ba69f7f7ce1ec46d26afdacd24ffdad813ad540abbecd50fca318c7439bd347a6533 WHIRLPOOL e0d7571c771dcf5c7c53e709989d2f6a078471fe466b2e90ce175d8735293613bae3fd882e0e9a0456f111673c2d1548d051607b27d62b9568ff3ed339bf0ee1
+AUX git-annex-6.20170101-crypto-api.patch 212 SHA256 277eca5ed181ec77b51f9335aaf8243386f68b0413f1bc83d2131ce933a4b51c SHA512 c0b69ef8dffd9df06663513233f7848e3f8abfec5f6f93656cbfc466887ac5d2bbbbe65bb07088a488616593a44456fa9aa459a1404352afa66b2b7cdc937dfe WHIRLPOOL a95cc7bf6756f9cb34fd4c1948efe19c88ada2afdc5a9a5909a98d3f09bd798c059ae96f52bd27ea436087b689a8004869f6efae75dd7ffe5d732348fe7c3aa8
+AUX git-annex.bash 440 SHA256 1704c8456fb795069457a77be169996cf912d3f4db2ae97ac81522b1e05d5c49 SHA512 89b6520e4be14af9032638c1153df936a7e5707d6453b4251fe762712b8956ba1d39a4623b06910e5ac5724e33e157e654b724e070b6893f6f26578df730d326 WHIRLPOOL 6b99abade966604f3a31c47d2f771784673abe927b8a97245d7d3c1b44253e62dd2130d8ffd25900c826552555edc11ae98a1195d926fab453857bc62b19a2b0
+AUX git-annex.xpm 1961 SHA256 e9576b4d026cb8e61ee602d52639d65a2e8f2aadaaa3cfd9d8bfd8f55cf03803 SHA512 4a22ac448852160d66838c272f41b8c7599aa1b904e35ac03ea294d9ed15b855bde24b7e5407a2578937bfd51d482837ed6680af680166d030f71666316ae4d3 WHIRLPOOL a582bb82d01de4750e3bcb2e419cf0a334e11428972f68bbb70aa06ea5a357de89d48327d4576adf0f4101cd577f13c6f50b41d85d7c2fc6a0efb87124b88b60
+DIST git-annex-6.20170818.tar.gz 1111837 SHA256 7ddf3f8be218d8e8955be49fb0200179e54406cc02e884abe999f88d578f7d79 SHA512 06587bf0d3056e4b94d4c40aaae820efda133dcbc876a2ac3db3183fb511ec20aae4c495323b4886868a3e66b5b1f53a04c5f3abb0362c718bbadc8e2f6e15d0 WHIRLPOOL b4034833a96ab11c8972c1b679c10948455459ef0a82fe98c9912db932ab384e00ad1a13d08030f658cc1f0525888e5e9e34e48f7e09704f642ac57e908d8a35
+EBUILD git-annex-6.20170818.ebuild 4444 SHA256 da6eb1e28c18aae68a7cdfa06b851c02f654b7800548959aea09156f17adbf98 SHA512 219ceefb167332eff7c24aa3733b0ca05ca3b5eef843f65b9526df73de49d67cee243835ed9613beafeb5bbef4f698799b154fd1c9d5da57137fadd61731c56f WHIRLPOOL 3ce05d0e1764a45e470507b838c27c3e8ba069aae8658fd30c77aebae74ded0bf4d5238befcff8625df3fcc9248667e9041e5375e8baffd3ac9045dd4b065810
+MISC ChangeLog 6727 SHA256 be34d09bbd708b16eb8a682d1d19e707f16dec622092b19ac5940c1946dcb9bb SHA512 2c29dd48c4b53de701a0748b31878dce5fa022e815a388e9724ee7a2de164238e143860429b841888875e2bab2490e369b924b2d50301d028833223cfc405287 WHIRLPOOL 79862879c082d1956085d6e322643b382c8f02af578484efef493a4080780da451283a2418e4ae48d167a557b35847a58ddc3e90fc2910648befcda1d91bf9a1
+MISC ChangeLog-2015 7664 SHA256 37642d13a5b0268316a9b53b85b71df879fb0f0498dbb95941c2c426ddd5e693 SHA512 cad8a70744121072f608f37d6e68de5620b71cfe6c0d634507370a3e55be5e46d688eb594cf75aa65873ac5f6ffc38272b0d6941e7387203202b0a6c2f492c34 WHIRLPOOL 0b2c5553410baa2763504a3e6f16d50c46895367c03cca855794d67513c478ec0be0a17e113feace3a7e60b93a5ef76dce17341729e43815ae794a1d5f43478c
+MISC metadata.xml 1735 SHA256 59050108ac7b7f416ca1c4a4fd7450b0f60fa5811e8d6b61f7c404c90b685179 SHA512 33e68df57c88e73f1d1b88d051a0f9a22a84dea82e26b8b552a36f213c63680fd780bbc8c2cdf1f1c9e57b47d982218a4b096ac59e8137b019af7164fe72ea69 WHIRLPOOL b511ad34c54bccbb260104a53415d1c079dd314a58cdb26759d50701ccf6fbc2abf2aa172db8ba9fa00f014ae9977e2db0ce85a6c4f368c03fd06f5d516a244a
diff --git a/dev-vcs/git-annex/files/git-annex-5.20150731-no-strange-installs.patch b/dev-vcs/git-annex/files/git-annex-5.20150731-no-strange-installs.patch
new file mode 100644
index 000000000000..a2ca5b866282
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex-5.20150731-no-strange-installs.patch
@@ -0,0 +1,9 @@
+diff --git a/Setup.hs b/Setup.hs
+index f90a9b2..97afb7f 100644
+--- a/Setup.hs
++++ b/Setup.hs
+@@ -25,3 +25,3 @@ main = defaultMainWithHooks simpleUserHooks
+ return (Nothing, [])
+- , postCopy = myPostCopy
++ -- , postCopy = myPostCopy
+ }
diff --git a/dev-vcs/git-annex/files/git-annex-6.20160114-QC-2.8.2.patch b/dev-vcs/git-annex/files/git-annex-6.20160114-QC-2.8.2.patch
new file mode 100644
index 000000000000..2f232782de02
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex-6.20160114-QC-2.8.2.patch
@@ -0,0 +1,16 @@
+diff --git a/Utility/QuickCheck.hs b/Utility/QuickCheck.hs
+index cd408dd..9f60f23 100644
+--- a/Utility/QuickCheck.hs
++++ b/Utility/QuickCheck.hs
+@@ -9,2 +9,3 @@
+ {-# LANGUAGE TypeSynonymInstances #-}
++{-# LANGUAGE CPP #-}
+
+@@ -23,2 +24,3 @@ import Prelude
+
++#if ! MIN_VERSION_QuickCheck(2,8,2)
+ instance (Arbitrary k, Arbitrary v, Eq k, Ord k) => Arbitrary (M.Map k v) where
+@@ -28,2 +30,3 @@ instance (Arbitrary v, Eq v, Ord v) => Arbitrary (S.Set v) where
+ arbitrary = S.fromList <$> arbitrary
++#endif
+
diff --git a/dev-vcs/git-annex/files/git-annex-6.20161210-directory-1.3.patch b/dev-vcs/git-annex/files/git-annex-6.20161210-directory-1.3.patch
new file mode 100644
index 000000000000..1e9bb57f9eec
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex-6.20161210-directory-1.3.patch
@@ -0,0 +1,9 @@
+diff --git a/Common.hs b/Common.hs
+index 5213863..74b054e 100644
+--- a/Common.hs
++++ b/Common.hs
+@@ -27,3 +27,3 @@ import Utility.Process as X
+ import Utility.Path as X
+-import Utility.Directory as X
++import Utility.Directory as X hiding (getFileSize)
+ import Utility.Monad as X
diff --git a/dev-vcs/git-annex/files/git-annex-6.20170101-crypto-api.patch b/dev-vcs/git-annex/files/git-annex-6.20170101-crypto-api.patch
new file mode 100644
index 000000000000..c517c651ce47
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex-6.20170101-crypto-api.patch
@@ -0,0 +1,8 @@
+diff --git a/git-annex.cabal b/git-annex.cabal
+index 5b95a16..f03024d 100644
+--- a/git-annex.cabal
++++ b/git-annex.cabal
+@@ -326,2 +326,3 @@ Executable git-annex
+ case-insensitive,
++ crypto-api,
+ random,
diff --git a/dev-vcs/git-annex/files/git-annex.bash b/dev-vcs/git-annex/files/git-annex.bash
new file mode 100644
index 000000000000..309b221f0157
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex.bash
@@ -0,0 +1,19 @@
+_git_annex()
+{
+ local cmdline
+ local IFS=$'
+'
+ CMDLINE=(--bash-completion-index $COMP_CWORD)
+
+ if [[ "${COMP_WORDS[@]:0:2}" == "git annex" ]]; then
+ unset COMP_WORDS[0]
+ COMP_WORDS[1]="git-annex"
+ fi
+ for arg in ${COMP_WORDS[@]}; do
+ CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
+ done
+
+ COMPREPLY=( $(/usr/bin/git-annex "${CMDLINE[@]}") )
+}
+
+complete -o filenames -F _git_annex git-annex
diff --git a/dev-vcs/git-annex/files/git-annex.xpm b/dev-vcs/git-annex/files/git-annex.xpm
new file mode 100644
index 000000000000..781f21c5e9dc
--- /dev/null
+++ b/dev-vcs/git-annex/files/git-annex.xpm
@@ -0,0 +1,47 @@
+/* XPM */
+static char * git_annex_42x42_xpm[] = {
+"42 40 4 1",
+" c None",
+". c #40BF4C",
+"+ c #D8382D",
+"@ c #666666",
+" . . ",
+" ... ... ",
+" ... ... ",
+" ..... ..... ",
+"....... .......",
+" ... ... ",
+" . . ",
+" . . ",
+" .. .. ",
+" . .... . ",
+" .. .... .. ",
+" .... .... .... ",
+" ..... .... ..... ",
+" .... . ................ . .... ",
+" .. . ................ . .. ",
+" .. ................ .. ",
+" .... ",
+" .... ",
+" .... ",
+" .... ",
+" ",
+" ++++++++++++++++ ",
+" ++++++++++++++++ ",
+" ++++++++++++++++ ",
+" ++++++++++++++++ ",
+" ",
+" @@ @@@@@@@@ ",
+" @@@@ @@@@@@@@ ",
+" @@@@ @@@@@@ ",
+" @@@@@ @@@@@@@ ",
+" @@@ @@ @@@ ",
+" @@@@ @@ @@@@ ",
+" @@@ @@ @@@ ",
+" @@@@ @@@ ",
+" @@@ @@@@ ",
+" @@@@ @@@ ",
+" @@@@@@ @@@@@@ ",
+" @@@@@@@@@@@@ ",
+" @@@@@@@@@@ ",
+" @@@@@@ "};
diff --git a/dev-vcs/git-annex/git-annex-6.20170818.ebuild b/dev-vcs/git-annex/git-annex-6.20170818.ebuild
new file mode 100644
index 000000000000..29375595e8d4
--- /dev/null
+++ b/dev-vcs/git-annex/git-annex-6.20170818.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.3.9999
+#hackport: flags: -production,-android,-androidsplice,-testsuite
+
+CABAL_FEATURES=""
+inherit haskell-cabal bash-completion-r1
+
+DESCRIPTION="manage files with git, without checking their contents into git"
+HOMEPAGE="http://git-annex.branchable.com/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+RESTRICT="test"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="+assistant benchmark +concurrentoutput +dbus doc +magicmime +network-uri +pairing s3 +torrentparser +webapp +webdav"
+
+RDEPEND="dev-haskell/aeson:=
+ dev-haskell/async:=
+ dev-haskell/bloomfilter:=
+ dev-haskell/byteable:=
+ dev-haskell/case-insensitive:=
+ dev-haskell/crypto-api:=
+ dev-haskell/cryptonite:=
+ dev-haskell/data-default:=
+ dev-haskell/disk-free-space:=
+ dev-haskell/dlist:=
+ dev-haskell/edit-distance:=
+ dev-haskell/esqueleto:=
+ >=dev-haskell/exceptions-0.6:=
+ >=dev-haskell/feed-0.3.9:=
+ dev-haskell/free:=
+ dev-haskell/hslogger:=
+ dev-haskell/http-client:=
+ >=dev-haskell/http-conduit-2.0:=
+ >=dev-haskell/http-types-0.7:=
+ dev-haskell/ifelse:=
+ dev-haskell/memory:=
+ dev-haskell/monad-control:=
+ dev-haskell/monad-logger:=
+ >=dev-haskell/mtl-2:=
+ dev-haskell/old-locale:=
+ >=dev-haskell/optparse-applicative-0.11.0:=
+ dev-haskell/persistent:=
+ dev-haskell/persistent-sqlite:=
+ dev-haskell/persistent-template:=
+ >=dev-haskell/quickcheck-2.1:2=
+ dev-haskell/random:=
+ dev-haskell/regex-tdfa:=
+ dev-haskell/resourcet:=
+ dev-haskell/safesemaphore:=
+ dev-haskell/sandi:=
+ dev-haskell/securemem:=
+ dev-haskell/socks:=
+ dev-haskell/split:=
+ >=dev-haskell/stm-2.3:=
+ dev-haskell/stm-chans:=
+ dev-haskell/text:=
+ dev-haskell/unix-compat:=
+ dev-haskell/unordered-containers:=
+ dev-haskell/utf8-string:=
+ >=dev-haskell/uuid-1.2.6:=
+ >=dev-lang/ghc-7.8.2:=
+ assistant? ( >=dev-haskell/dns-1.0.0:=
+ dev-haskell/hinotify:=
+ dev-haskell/mountpoints:=
+ sys-process/lsof )
+ benchmark? ( dev-haskell/criterion:= )
+ concurrentoutput? ( >=dev-haskell/concurrent-output-1.6:= )
+ dbus? ( >=dev-haskell/dbus-0.10.7:=
+ >=dev-haskell/fdo-notify-0.3:= )
+ magicmime? ( dev-haskell/magic:= )
+ network-uri? ( >=dev-haskell/network-2.6:=
+ >=dev-haskell/network-uri-2.6:= )
+ !network-uri? ( >=dev-haskell/network-2.4:= <dev-haskell/network-2.6:= )
+ pairing? ( dev-haskell/network-info:=
+ dev-haskell/network-multicast:= )
+ s3? ( >=dev-haskell/aws-0.9.2:=
+ dev-haskell/conduit:=
+ dev-haskell/conduit-extra:= )
+ torrentparser? ( >=dev-haskell/torrent-10000.0.0:= )
+ webapp? ( dev-haskell/blaze-builder:=
+ dev-haskell/clientsession:=
+ >=dev-haskell/path-pieces-0.1.4:=
+ >=dev-haskell/shakespeare-2.0.0:=
+ dev-haskell/wai:=
+ dev-haskell/wai-extra:=
+ >=dev-haskell/warp-3.0.0.5:=
+ >=dev-haskell/warp-tls-1.4:=
+ >=dev-haskell/yesod-1.2.6:=
+ >=dev-haskell/yesod-core-1.2.19:=
+ >=dev-haskell/yesod-default-1.2.0:=
+ >=dev-haskell/yesod-form-1.3.15:=
+ >=dev-haskell/yesod-static-1.2.4:= )
+ webdav? ( >=dev-haskell/dav-1.0:= )
+"
+# not generated by hackport:
+RDEPEND="${RDEPEND}
+ dev-vcs/git
+"
+
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+"
+
+# not generated by hackport:
+DEPEND="${DEPEND}
+ dev-lang/perl
+ doc? ( www-apps/ikiwiki net-misc/rsync )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.20160114-QC-2.8.2.patch
+ "${FILESDIR}"/${PN}-6.20161210-directory-1.3.patch
+ "${FILESDIR}"/${PN}-6.20170101-crypto-api.patch
+)
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-android \
+ --flag=-androidsplice \
+ $(cabal_flag assistant assistant) \
+ $(cabal_flag benchmark benchmark) \
+ $(cabal_flag concurrentoutput concurrentoutput) \
+ $(cabal_flag dbus dbus) \
+ $(cabal_flag magicmime magicmime) \
+ $(cabal_flag network-uri network-uri) \
+ $(cabal_flag pairing pairing) \
+ --flag=-production \
+ $(cabal_flag s3 s3) \
+ --flag=-testsuite \
+ $(cabal_flag torrentparser torrentparser) \
+ $(cabal_flag webapp webapp) \
+ $(cabal_flag webdav webdav)
+}
+
+src_test() {
+ if use webapp; then
+ export GIT_CONFIG=${T}/temp-git-config
+ git config user.email "git@src_test"
+ git config user.name "Mr. ${P} The Test"
+
+ emake test
+ fi
+}
+
+src_install() {
+ haskell-cabal_src_install
+
+ newbashcomp "${FILESDIR}"/${PN}.bash ${PN}
+
+ dodoc CHANGELOG README
+ if use webapp ; then
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry "${PN} webapp" "git-annex" ${PN}.xpm "Office"
+ fi
+}
diff --git a/dev-vcs/git-annex/metadata.xml b/dev-vcs/git-annex/metadata.xml
new file mode 100644
index 000000000000..e35251395d35
--- /dev/null
+++ b/dev-vcs/git-annex/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ git-annex allows managing files with git, without checking the file
+ contents into git. While that may seem paradoxical, it is useful when
+ dealing with files larger than git can currently easily handle, whether due
+ to limitations in memory, checksumming time, or disk space.
+
+ Even without file content tracking, being able to manage files with git,
+ move files around and delete files with versioned directory trees, and use
+ branches and distributed clones, are all very handy reasons to use git. And
+ annexed files can co-exist in the same git repository with regularly
+ versioned files, which is convenient for maintaining documents, Makefiles,
+ etc that are associated with annexed files but that benefit from full
+ revision control.
+ </longdescription>
+ <use>
+ <flag name="assistant">Enable git-annex assistant and watch command</flag>
+ <flag name="benchmark">Enable benchmarking</flag>
+ <flag name="concurrentoutput">Use concurrent-output library (experimental)</flag>
+ <flag name="magicmime">Use libmagic to determine file MIME types</flag>
+ <flag name="network-uri">Get Network.URI from the network-uri package.</flag>
+ <flag name="pairing">Enable pairing of git annex repositories</flag>
+ <flag name="s3">Enable Amazon S3 remote</flag>
+ <flag name="torrentparser">Use haskell torrent library to parse torrent files</flag>
+ <flag name="webapp">Enable git-annex webapp</flag>
+ <flag name="webdav">Enable webdav remote</flag>
+ </use>
+</pkgmetadata>