diff options
author | Raúl Benencia <rul@kalgan.cc> | 2014-03-02 00:12:54 +0400 |
---|---|---|
committer | =?UTF-8?q?Ra=C3=BAl=20Benencia?= <rul@kalgan.cc> | 2014-03-02 00:12:54 +0400 |
commit | b9c3e85c66554498b4608edd13af7c6174c3b8be (patch) | |
tree | c4d6e94da5eeafca40e9721eecebd7100f8882a6 /p | |
parent | 1e9ea2171c99a3ed717a5c7b3cb04774f30a2531 (diff) | |
download | DHG_packages-b9c3e85c66554498b4608edd13af7c6174c3b8be.tar.gz |
hothasktags: Initial Check-In (migrate from git)
Diffstat (limited to 'p')
-rw-r--r-- | p/hothasktags/debian/changelog | 28 | ||||
-rw-r--r-- | p/hothasktags/debian/compat | 1 | ||||
-rw-r--r-- | p/hothasktags/debian/control | 24 | ||||
-rw-r--r-- | p/hothasktags/debian/copyright | 34 | ||||
-rw-r--r-- | p/hothasktags/debian/hothasktags.1 | 27 | ||||
-rw-r--r-- | p/hothasktags/debian/manpages | 1 | ||||
-rw-r--r-- | p/hothasktags/debian/patches/00-bump-haskell-src-exts-version | 50 | ||||
-rw-r--r-- | p/hothasktags/debian/patches/series | 1 | ||||
-rwxr-xr-x | p/hothasktags/debian/rules | 17 | ||||
-rw-r--r-- | p/hothasktags/debian/source/format | 1 | ||||
-rw-r--r-- | p/hothasktags/debian/watch | 2 |
11 files changed, 186 insertions, 0 deletions
diff --git a/p/hothasktags/debian/changelog b/p/hothasktags/debian/changelog new file mode 100644 index 000000000..ed947696b --- /dev/null +++ b/p/hothasktags/debian/changelog @@ -0,0 +1,28 @@ +hothasktags (0.3.1-3) UNRELEASED; urgency=medium + + * Patch for compatibility with src-exts 1.14. Closes: #730888 + * Migrate VCS from git to darcs. + * Bump Standards-Version without any changes. + * Update watch file + + -- Raúl Benencia <rul@kalgan.cc> Sat, 01 Mar 2014 16:42:17 -0300 + +hothasktags (0.3.1-2) unstable; urgency=low + + * Avoid using runghc, which requires working ghci. + + -- Joey Hess <joeyh@debian.org> Sun, 07 Apr 2013 14:35:38 -0400 + +hothasktags (0.3.1-1) unstable; urgency=low + + * New upstream release. + * Avoid running cabal in the build process; among other problems + cabal writes to $HOME. Closes: #704876 + + -- Joey Hess <joeyh@debian.org> Sun, 07 Apr 2013 13:32:05 -0400 + +hothasktags (0.3.0-1) unstable; urgency=low + + * Initial release. + + -- Joey Hess <joeyh@debian.org> Wed, 30 Jan 2013 11:33:04 +1100 diff --git a/p/hothasktags/debian/compat b/p/hothasktags/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/p/hothasktags/debian/compat @@ -0,0 +1 @@ +9 diff --git a/p/hothasktags/debian/control b/p/hothasktags/debian/control new file mode 100644 index 000000000..bae8c9720 --- /dev/null +++ b/p/hothasktags/debian/control @@ -0,0 +1,24 @@ +Source: hothasktags +Section: devel +Priority: optional +Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> +Uploaders: Joey Hess <joeyh@debian.org> +Build-Depends: debhelper (>= 9) + , ghc + , libghc-src-exts-dev (>= 1.14) + , libghc-src-exts-dev (<< 1.15) + , cpphs (>= 1.11) +Standards-Version: 3.9.5 +Homepage: http://hackage.haskell.org/package/hothasktags +Vcs-Darcs: http://darcs.debian.org/pkg-haskell/hothasktags +Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/hothasktags + +Package: hothasktags +Architecture: any +Depends: ${shlibs:Depends} + , ${misc:Depends} +Description: Haskell ctags generator + hothasktags generates ctags files for Haskell, with knowledge of + import lists and qualified imports. It provides a smart go-to-definition + for Vim, that almost always gets it right in the presence of multiple names + from different modules. diff --git a/p/hothasktags/debian/copyright b/p/hothasktags/debian/copyright new file mode 100644 index 000000000..c25142384 --- /dev/null +++ b/p/hothasktags/debian/copyright @@ -0,0 +1,34 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: http://hackage.haskell.org/package/hothasktags + +Files: * +Copyright: (c) 2010-2013, Luke Palmer +License: other + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + . + * Neither the name of Luke Palmer nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/p/hothasktags/debian/hothasktags.1 b/p/hothasktags/debian/hothasktags.1 new file mode 100644 index 000000000..14692267d --- /dev/null +++ b/p/hothasktags/debian/hothasktags.1 @@ -0,0 +1,27 @@ +.TH hothasktags 1 +.SH NAME +hothacktags \- generate ctags files for Haskell +.SH SYNOPSIS +.B hothasktags <file> <file> ... > tags +.SH DESCRIPTION +.BR hothasktags +generates ctags files for Haskell, with knowledge of import +lists and qualified imports. It provides a smart go-to-definition for Vim, +that almost always gets it right in the presence of multiple names from +different modules. +.P +You will want to configure Vim to allow dots in keywords, because hothasktags +generates tags for qualified names. You can do this with: +.P +> set iskeyword=a-z,A-Z,_,.,39 +.P +(The 39 is for the prime character) +.P +Usage is easy, just give hothasktags the names of all the haskell sources you +want to index and redirect into a tags file. For example: +.P +> find . | egrep '\.hs$' | xargs hothasktags > tags +.P +will index all the hs files under the current directory. +.P +hothasktags does not work with the emacs tag file format. Sorry. diff --git a/p/hothasktags/debian/manpages b/p/hothasktags/debian/manpages new file mode 100644 index 000000000..f87eb26f3 --- /dev/null +++ b/p/hothasktags/debian/manpages @@ -0,0 +1 @@ +debian/hothasktags.1 diff --git a/p/hothasktags/debian/patches/00-bump-haskell-src-exts-version b/p/hothasktags/debian/patches/00-bump-haskell-src-exts-version new file mode 100644 index 000000000..ed1d96c8c --- /dev/null +++ b/p/hothasktags/debian/patches/00-bump-haskell-src-exts-version @@ -0,0 +1,50 @@ +Description: Fix compatibility with haskell-src-exts 1.14 +Author: Raúl Benencia <rul@kalgan.cc> +--- a/Main.hs ++++ b/Main.hs +@@ -39,7 +39,7 @@ + + extractPat (L.PVar _ name) = extractName name + extractPat (L.PApp _ _ pats) = concatMap extractPat pats +- extractPat (L.PTuple _ pats) = concatMap extractPat pats ++ extractPat (L.PTuple _ _ pats) = concatMap extractPat pats + extractPat (L.PList _ pats) = concatMap extractPat pats + extractPat (L.PParen _ pat) = extractPat pat + extractPat (L.PAsPat _ name pat) = extractName name ++ extractPat pat +@@ -175,11 +175,12 @@ + haskellSource :: FilePath -> IO String + haskellSource file = do + contents <- readFile file +- let needsCpp = maybe False (L.CPP `elem`) (L.readExtensions contents) ++ let needsCpp = maybe False ((L.EnableExtension L.CPP) `elem`) $ exts contents + if needsCpp + then CPP.runCpphs cppOpts file contents + else return contents + where ++ exts contents = fmap (\(_, exts') -> exts') $ L.readExtensions contents + cppOpts = CPP.defaultCpphsOptions { CPP.boolopts = CPP.defaultBoolOptions { CPP.hashline = False } } + + +@@ -198,7 +199,10 @@ + where + mode filename = L.ParseMode { + L.parseFilename = filename, +- L.extensions = [L.MultiParamTypeClasses, L.ExistentialQuantification, L.FlexibleContexts], ++ L.baseLanguage = L.Haskell98, ++ L.extensions = [L.EnableExtension L.MultiParamTypeClasses, ++ L.EnableExtension L.ExistentialQuantification, ++ L.EnableExtension L.FlexibleContexts], + L.ignoreLanguagePragmas = False, + L.ignoreLinePragmas = False, + L.fixities = Nothing +--- a/hothasktags.cabal ++++ b/hothasktags.cabal +@@ -37,7 +37,7 @@ + base == 4.*, + containers, + filepath, +- haskell-src-exts >= 1.11 && < 1.14, ++ haskell-src-exts >= 1.14 && < 1.15, + cpphs >= 1.11 && < 1.17 + main-is: Main.hs + ghc-options: -W diff --git a/p/hothasktags/debian/patches/series b/p/hothasktags/debian/patches/series new file mode 100644 index 000000000..c0ee88b35 --- /dev/null +++ b/p/hothasktags/debian/patches/series @@ -0,0 +1 @@ +00-bump-haskell-src-exts-version diff --git a/p/hothasktags/debian/rules b/p/hothasktags/debian/rules new file mode 100755 index 000000000..a8c3f13b7 --- /dev/null +++ b/p/hothasktags/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_configure: + ghc --make Setup + ./Setup configure + +override_dh_auto_build: + ./Setup build + +override_dh_auto_clean: + if [ -x Setup ]; then ./Setup clean; fi + rm -f Setup Setup.o Setup.hi + +override_dh_auto_install: + dh_install dist/build/hothasktags/hothasktags usr/bin diff --git a/p/hothasktags/debian/source/format b/p/hothasktags/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/p/hothasktags/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/p/hothasktags/debian/watch b/p/hothasktags/debian/watch new file mode 100644 index 000000000..bfbca93f3 --- /dev/null +++ b/p/hothasktags/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://hackage.haskell.org/package/hothasktags/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) |