-
-
Notifications
You must be signed in to change notification settings - Fork 19.7k
lxterminal: init at 0.3.1 #33240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lxterminal: init at 0.3.1 #33240
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { stdenv, fetchurl, automake, autoconf, intltool, pkgconfig, gtk2, vte | ||
| , libxslt, docbook_xml_dtd_412, docbook_xml_xslt, libxml2, findXMLCatalogs | ||
| , buildSingleXMLCatalog | ||
| }: | ||
|
|
||
| let version = "0.3.1"; in | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "lxterminal-${version}"; | ||
|
|
||
| src = fetchurl { | ||
| url = "https://github.com/lxde/lxterminal/archive/${version}.tar.gz"; | ||
| sha256 = "e91f15c8a726d5c13227263476583137a2639d4799c021ca0726c9805021b54c"; | ||
| }; | ||
|
|
||
| configureFlags = [ | ||
| "--enable-man" | ||
| "--with-xml-catalog=../catalog.xml" # Generated by buildSingleXMLCatalog | ||
| ]; | ||
|
|
||
| buildInputs = [ | ||
| automake autoconf intltool pkgconfig gtk2 vte libxslt docbook_xml_dtd_412 | ||
| docbook_xml_xslt libxml2 findXMLCatalogs buildSingleXMLCatalog | ||
| ]; | ||
|
|
||
| preConfigure = '' | ||
| ./autogen.sh | ||
| ''; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| meta = { | ||
| description = "The standard terminal emulator of LXDE"; | ||
| longDescription = '' | ||
| LXTerminal is the standard terminal emulator of LXDE. The terminal is a | ||
| desktop-independent VTE-based terminal emulator for LXDE without any | ||
| unnecessary dependencies. | ||
| ''; | ||
| homepage = https://wiki.lxde.org/en/LXTerminal; | ||
| license = stdenv.lib.licenses.gpl2; | ||
| maintainers = [ stdenv.lib.maintainers.velovix ]; | ||
| platforms = stdenv.lib.platforms.linux; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Creates a single XML catalog that references the catalogs found by | ||
| # findXMLCatalogs. | ||
| # Useful for situations where only one catalog is expected. | ||
| buildSingleXMLCatalog() { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably better if this takes a single argument which is the output file produced. |
||
| echo '<?xml version="1.0"?>' > catalog.xml | ||
| echo '<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">' >> catalog.xml | ||
|
|
||
| catalogs=$(echo $XML_CATALOG_FILES | tr " " "\n") | ||
| for x in $catalogs | ||
| do | ||
| echo ' <nextCatalog catalog="'$x'" />' >> catalog.xml | ||
| done | ||
|
|
||
| echo '</catalog>' >> catalog.xml | ||
| } | ||
|
|
||
| if [ -z "$buildSingleXMLCatalogHookDone" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You don't want this. Environment Hooks are functions applied to every dependency, but |
||
| buildSingleXMLCatalogHookDone=1 | ||
|
|
||
| envHooks+=(buildSingleXMLCatalog) | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,6 +359,10 @@ with pkgs; | |
|
|
||
| findXMLCatalogs = makeSetupHook { } ../build-support/setup-hooks/find-xml-catalogs.sh; | ||
|
|
||
| buildSingleXMLCatalog = makeSetupHook { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a name parameter we should be using. |
||
| deps = [ findXMLCatalogs ]; | ||
| } ../build-support/setup-hooks/build-single-xml-catalog.sh; | ||
|
|
||
| wrapGAppsHook = makeSetupHook { | ||
| deps = [ gnome3.dconf.lib gnome3.gtk librsvg makeWrapper ]; | ||
| } ../build-support/setup-hooks/wrap-gapps-hook.sh; | ||
|
|
@@ -17091,6 +17095,10 @@ with pkgs; | |
| vte = gnome2.vte.override { pythonSupport = true; }; | ||
| }; | ||
|
|
||
| lxterminal = callPackage ../applications/misc/lxterminal { | ||
| vte = gnome2.vte; | ||
| }; | ||
|
|
||
| deepin-terminal = callPackage ../applications/misc/deepin-terminal { | ||
| inherit (gnome3) libgee vte; | ||
| wnck = libwnck3; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternately, it is possible to patch the m4 file to autodetect the catalog from the variable, see for example
gnome3.cheese.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know, that makes things a lot easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only issue is, the macro is in
acinclude.m4instead of the usualm4/gtkdoc_jh_check_xml_catalog.m4.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, and the m4 file has different contents as well. I ended up generating my own patch.