[packages/leksah] - new, raw

baggins baggins at pld-linux.org
Fri Oct 19 13:16:52 CEST 2012


commit f81128702a9adbab132c144dbc7b2977464f684a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Oct 19 13:16:37 2012 +0200

    - new, raw

 haddock.patch              |  17 ++++++++
 leksah.desktop             |  10 +++++
 leksah.spec                | 106 +++++++++++++++++++++++++++++++++++++++++++++
 leksah.xml                 |  45 +++++++++++++++++++
 leksah_loadsession.desktop |  11 +++++
 5 files changed, 189 insertions(+)
---
diff --git a/leksah.spec b/leksah.spec
new file mode 100644
index 0000000..a3dd051
--- /dev/null
+++ b/leksah.spec
@@ -0,0 +1,106 @@
+Summary:	Haskell IDE
+Name:		leksah
+Version:	0.12.1.3
+Release:	0.1
+License:	GPL
+Group:		Development/Tools
+Source0:	http://hackage.haskell.org/packages/archive/leksah/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	7b239fbcd67d969890e299fb7afb5985
+Source1:	%{name}.desktop
+Source2:	%{name}_loadsession.desktop
+Source3:	%{name}.xml
+Patch0:		haddock.patch
+URL:		http://leksah.org/
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	rpmbuild(macros) >= 1.608
+BuildRequires:	desktop-file-utils
+%requires_releq	ghc
+Requires:	hicolor-icon-theme
+Requires:	leksah-server
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Leksah is an Integrated Development Environment for Haskell written in
+Haskell. Leksah uses GTK+ as GUI Toolkit.
+
+%prep
+%setup -q
+%patch0
+
+%build
+runhaskell Setup.hs configure -v2 --enable-library-profiling \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.hs build
+runhaskell Setup.hs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps \
+	$RPM_BUILD_ROOT/%{_datadir}/mime/packages \
+	$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
+
+runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
+
+# work around automatic haddock docs installation
+rm -rf %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
+
+runhaskell Setup.hs register \
+	--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+
+install pics/leksah.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps/leksah.png
+
+desktop-file-install \
+	--add-category="Development" \
+	--add-category="X-DevelopmentTools" \
+	--dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
+
+desktop-file-install \
+	--add-category="Development" \
+	--add-category="X-DevelopmentTools" \
+	--dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE2}
+
+install %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/mime/packages
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_icon_cache hicolor
+%update_desktop_database
+%update_mime_database
+%ghc_pkg_recache
+
+%postun
+%update_icon_cache hicolor
+%update_desktop_database
+%update_mime_database
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_datadir}/%{name}-%{version}
+%dir %{_datadir}/%{name}-%{version}/data
+%dir %{_datadir}/%{name}-%{version}/data/leksah-welcome
+%dir %{_datadir}/%{name}-%{version}/data/leksah-welcome/src
+%dir %{_datadir}/%{name}-%{version}/pics
+%dir %{_datadir}/%{name}-%{version}/language-specs
+%{_datadir}/%{name}-%{version}/LICENSE
+%{_datadir}/%{name}-%{version}/Readme
+%{_datadir}/%{name}-%{version}/pics/*
+%{_datadir}/%{name}-%{version}/data/*.lksh*
+%{_datadir}/%{name}-%{version}/data/leksah.menu
+%{_datadir}/%{name}-%{version}/data/LICENSE
+%{_datadir}/%{name}-%{version}/data/welcome.txt
+%{_datadir}/%{name}-%{version}/data/leksah-welcome/*.*
+%{_datadir}/%{name}-%{version}/data/leksah-welcome/src/Main.hs
+%{_datadir}/%{name}-%{version}/language-specs/*
+%{_desktopdir}/%{name}.desktop
+%{_desktopdir}/%{name}_loadsession.desktop
+%{_datadir}/mime/packages/leksah.xml
+%{_iconsdir}/hicolor/128x128/apps/leksah.png
diff --git a/haddock.patch b/haddock.patch
new file mode 100644
index 0000000..07d02c6
--- /dev/null
+++ b/haddock.patch
@@ -0,0 +1,17 @@
+--- leksah-0.12.1.3_old/src/IDE/SymbolNavigation.hs	2012-06-29 13:48:39.271280240 +0530
++++ leksah-0.12.1.3/src/IDE/SymbolNavigation.hs	2012-06-30 18:20:13.861185566 +0530
+@@ -50,10 +50,10 @@
+     deriving (Ord,Eq,Show)
+ 
+ createHyperLinkSupport  ::
+-        SourceView ->                     -- ^ source buffer view
+-        ScrolledWindow ->               -- ^ container window
+-        (Bool -> Bool -> TextIter -> IO (TextIter, TextIter)) ->     -- ^ identifiermapper (bools=control,shift)
+-        (Bool -> Bool -> String -> IO ()) ->                            -- ^ click handler
++        SourceView ->                     --  source buffer view
++        ScrolledWindow ->               --  container window
++        (Bool -> Bool -> TextIter -> IO (TextIter, TextIter)) ->     --  identifiermapper (bools=control,shift)
++        (Bool -> Bool -> String -> IO ()) ->                            --  click handler
+         IO [Connection]
+ createHyperLinkSupport sv sw identifierMapper clickHandler = do
+     let tv = castToTextView sv
diff --git a/leksah.desktop b/leksah.desktop
new file mode 100644
index 0000000..ead8106
--- /dev/null
+++ b/leksah.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Leksah
+GenericName=Haskell IDE
+Comment=The Haskell development environment
+Exec=leksah -d %F
+Icon=leksah
+Type=Application
+Categories=GTK;Development;X-DevelopmentTools;
+MimeType=text/x-haskell;text/x-literate-haskell;
diff --git a/leksah.xml b/leksah.xml
new file mode 100644
index 0000000..1af0abc
--- /dev/null
+++ b/leksah.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+<mime-type type="application/leksah-session">
+<comment>leksah session file</comment>
+<glob pattern="*.lkshs"/>
+</mime-type>
+
+<mime-type type="application/leksah-workspace">
+<comment>leksah workspace file</comment>
+<glob pattern="*.lkshw"/>
+<generic-icon name="application-x-leksah"/>
+</mime-type>
+
+<mime-type type="text/leksah-preferences">
+<comment>leksah preferences file</comment>
+<glob pattern="*.lkshp"/>
+</mime-type>
+
+<mime-type type="text/leksah-candy">
+<comment>leksah candy file</comment>
+<glob pattern="*.lkshc"/>
+</mime-type>
+
+<mime-type type="text/leksah-keymap">
+<comment>leksah keymap file</comment>
+<glob pattern="*.lkshk"/>
+</mime-type>
+
+<mime-type type="x-contents/leksah-metadata">
+<comment>leksah metadata file</comment>
+<glob pattern="*.lkshm"/>
+</mime-type>
+
+<mime-type type="text/leksah-metadata-path">
+<comment>leksah metadata file</comment>
+<glob pattern="*.lkshp"/>
+
+</mime-type>
+
+<mime-type type="x-contents/leksah-metadata-ws">
+<comment>leksah workspace metadata file</comment>
+<glob pattern="*.lkshe"/>
+</mime-type>
+
+</mime-info>
diff --git a/leksah_loadsession.desktop b/leksah_loadsession.desktop
new file mode 100644
index 0000000..baa2f71
--- /dev/null
+++ b/leksah_loadsession.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Leksah
+GenericName=Haskell IDE
+Comment=The Haskell development environment
+NoDisplay=true
+Exec=leksah %f
+Icon=leksah
+Type=Application
+Categories=GTK;Development;X-DevelopmentTools;
+MimeType=application/leksah-session;application/leksah-workspace;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/leksah.git/commitdiff/f81128702a9adbab132c144dbc7b2977464f684a



More information about the pld-cvs-commit mailing list