1 |
commit: dd0d66a343d384fe9d8c62622180b04e8ac94041 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 15 01:30:58 2016 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 14:35:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd0d66a3 |
7 |
|
8 |
app-misc/mswinurl_launcher: rescue from sunrise |
9 |
|
10 |
This package has been a long time coming. Introduced to the Sunrise overlay in 2008, |
11 |
it was kept out of the tree primarily due to a license issue (since the upstream script |
12 |
doesn't have one). To be honest I'm not sure if *.url files are still created in |
13 |
recent versions of Windows anymore, but I personally still have filesystems with WindowsXP |
14 |
installed on them that I only access through linux, and having this file association open |
15 |
the url in my system's default browser is quite handy. |
16 |
|
17 |
The main difference between this package and that from Sunrise is that the .desktop file |
18 |
is created inline rather than being a separate file, and that there is an appropriate |
19 |
LICENSE and RESTRICT=mirror to allow the package to legally exist in the gentoo repo. This |
20 |
ebuild has also been converted to EAPI6. |
21 |
|
22 |
The ChangeLog from sunrise is as follows: |
23 |
|
24 |
10 Sep 2009; Thomas Sachau (Tommy[D]) <tommy <AT> gentoo.org> |
25 |
mswinurl_launcher-1.0.ebuild: |
26 |
Drop src_unpack and S assignment, use DISTDIR in src_install directly |
27 |
|
28 |
08 Sep 2009; Ian Stakenvicius (_AxS_) <ian <AT> aerobiology.ca> |
29 |
+mswinurl_launcher-1.0.ebuild, +files/mswinurl_launcher.desktop, |
30 |
+metadata.xml: |
31 |
New package for bug #283698 - thanks to ssuominen for the ebuild help |
32 |
|
33 |
Package-Manager: portage-2.3.0 |
34 |
|
35 |
app-misc/mswinurl_launcher/Manifest | 1 + |
36 |
app-misc/mswinurl_launcher/metadata.xml | 11 +++++ |
37 |
.../mswinurl_launcher/mswinurl_launcher-1.0.ebuild | 53 ++++++++++++++++++++++ |
38 |
3 files changed, 65 insertions(+) |
39 |
|
40 |
diff --git a/app-misc/mswinurl_launcher/Manifest b/app-misc/mswinurl_launcher/Manifest |
41 |
new file mode 100644 |
42 |
index 00000000..e5dd4a4 |
43 |
--- /dev/null |
44 |
+++ b/app-misc/mswinurl_launcher/Manifest |
45 |
@@ -0,0 +1 @@ |
46 |
+DIST mswinurl_launcher-1.0.tar.gz 1289 SHA256 687172bf0817fa3910da7b52cbbdcb0d5b2f95757f8b35db84884310355ae76e SHA512 60435b78dc88ff3e6f780ef42a975eaedc2f515168ba1c6c3fc8b38f87ea5ad4d70d975825877233bae1c5f9c6a521d1c12d301683c9e3e705d18c6c26ce4f86 WHIRLPOOL 46613a71002a842fc66993dc7007bcc3dcc144591abc0d4afb4802757b0bcf636ff9e73d0d16c0be5cf675aed8b5e7348e33a92ccc84f7ef30c9842952ad3d77 |
47 |
|
48 |
diff --git a/app-misc/mswinurl_launcher/metadata.xml b/app-misc/mswinurl_launcher/metadata.xml |
49 |
new file mode 100644 |
50 |
index 00000000..6fa1cc2 |
51 |
--- /dev/null |
52 |
+++ b/app-misc/mswinurl_launcher/metadata.xml |
53 |
@@ -0,0 +1,11 @@ |
54 |
+<?xml version="1.0" encoding="UTF-8"?> |
55 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
56 |
+<pkgmetadata> |
57 |
+<maintainer type="person"> |
58 |
+ <email>axs@g.o</email> |
59 |
+ <description>Primary maintainer</description> |
60 |
+</maintainer> |
61 |
+<longdescription> |
62 |
+This is a simple launcher script and .desktop entry to associate MS Windows *.URL (text/x-uri) |
63 |
+files on linux DEs so that they will open in the configured default web browser.</longdescription> |
64 |
+</pkgmetadata> |
65 |
|
66 |
diff --git a/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild b/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild |
67 |
new file mode 100644 |
68 |
index 00000000..ee09304 |
69 |
--- /dev/null |
70 |
+++ b/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild |
71 |
@@ -0,0 +1,53 @@ |
72 |
+# Copyright 1999-2016 Gentoo Foundation |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+# $Header: $ |
75 |
+ |
76 |
+EAPI=6 |
77 |
+ |
78 |
+PYTHON_COMPAT=( python2_7 ) |
79 |
+inherit eutils fdo-mime python-r1 |
80 |
+ |
81 |
+GIST_STRING="77635-a46707715aa2e112d2ea5ec26771030ff5e7eb64" |
82 |
+ |
83 |
+DESCRIPTION="Launcher and desktop association for MS Windows *.URL (text/x-uri) files" |
84 |
+HOMEPAGE="https://gist.github.com/endolith/77635" |
85 |
+SRC_URI="https://gist.github.com/endolith/${GIST_STRING/-//archive/}.tar.gz -> ${P}.tar.gz" |
86 |
+ |
87 |
+RESTRICT="mirror" |
88 |
+LICENSE="all-rights-reserved" |
89 |
+SLOT="0" |
90 |
+KEYWORDS="~amd64 ~x86" |
91 |
+IUSE="" |
92 |
+ |
93 |
+DEPEND="dev-util/desktop-file-utils" |
94 |
+RDEPEND="${PYTHON_DEPS}" |
95 |
+ |
96 |
+S="${WORKDIR}"/$GIST_STRING |
97 |
+ |
98 |
+src_install() { |
99 |
+ dobin ${PN}.py |
100 |
+ python_replicate_script "${ED%/}"/usr/bin/${PN}.py |
101 |
+ |
102 |
+ cat <<DESKTOP_EOF >"${T}"/${PN}.desktop |
103 |
+[Desktop Entry] |
104 |
+Version=1.0 |
105 |
+Type=Application |
106 |
+Name=MS Windows URL file launcher |
107 |
+Comment=Python script to parse and launch .url files (html links) from MS Windows |
108 |
+NoDisplay=true |
109 |
+Terminal=false |
110 |
+TryExec=mswinurl_launcher.py |
111 |
+Exec=mswinurl_launcher.py %F |
112 |
+Icon=text-html |
113 |
+MimeType=text/x-uri; |
114 |
+DESKTOP_EOF |
115 |
+ domenu "${T}"/${PN}.desktop |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ fdo-mime_desktop_database_update |
120 |
+} |
121 |
+ |
122 |
+pkg_postrm() { |
123 |
+ fdo-mime_desktop_database_update |
124 |
+} |