Use Cabal to build ghctags
authorIan Lynagh <igloo@earth.li>
Sun, 14 Oct 2012 14:54:57 +0000 (15:54 +0100)
committerIan Lynagh <igloo@earth.li>
Sun, 14 Oct 2012 14:54:57 +0000 (15:54 +0100)
utils/ghctags/ghc.mk
utils/ghctags/ghctags.cabal [new file with mode: 0644]

index b167a3c..949a051 100644 (file)
@@ -10,9 +10,9 @@
 #
 # -----------------------------------------------------------------------------
 
-utils/ghctags_dist-install_MODULES         = Main
-utils/ghctags_dist-install_HC_OPTS         = -package ghc
+utils/ghctags_USES_CABAL                   = YES
+utils/ghctags_PACKAGE                      = ghctags
+utils/ghctags_dist-install_PROG            = ghctags$(exeext)
 utils/ghctags_dist-install_INSTALL         = NO
 utils/ghctags_dist-install_INSTALL_INPLACE = YES
-utils/ghctags_dist-install_PROG            = ghctags$(exeext)
 $(eval $(call build-prog,utils/ghctags,dist-install,2))
diff --git a/utils/ghctags/ghctags.cabal b/utils/ghctags/ghctags.cabal
new file mode 100644 (file)
index 0000000..9ca079b
--- /dev/null
@@ -0,0 +1,20 @@
+Name: ghctags
+Version: 0.1
+Copyright: XXX
+License: BSD3
+-- XXX License-File: LICENSE
+Author: XXX
+Maintainer: XXX
+Synopsis: XXX
+Description:
+       XXX
+Category: Development
+build-type: Simple
+cabal-version: >=1.2
+
+Executable ghctags
+    Main-Is: Main.hs
+
+    Build-Depends: base       >= 4   && < 5,
+                   ghc
+