lynx and hunspell
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>network.web</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def setup():
|
||||
autotools.configure("--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--enable-warnings \
|
||||
--enable-8bit-toupper \
|
||||
--enable-externs \
|
||||
--enable-cgi-links \
|
||||
--enable-persistent-cookies \
|
||||
--enable-prettysrc \
|
||||
--enable-source-cache \
|
||||
--enable-charset-choice \
|
||||
--enable-default-colors \
|
||||
--enable-nested-tables \
|
||||
--enable-read-eta \
|
||||
--with-zlib \
|
||||
--enable-nls \
|
||||
--enable-ipv6 \
|
||||
--mandir=/usr/share/man")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS*", "AUTHORS", "CHANGES", "COPYING", "INSTALLATION","README")
|
||||
|
||||
pisitools.dobin("lynx")
|
||||
@@ -0,0 +1,15 @@
|
||||
--- lynx2-8-6/WWW/Library/Implementation/HTTelnet.c.pix 2006-05-30 00:44:54.000000000 +0200
|
||||
+++ lynx2-8-6/WWW/Library/Implementation/HTTelnet.c 2006-11-16 17:27:19.000000000 +0100
|
||||
@@ -64,6 +64,12 @@
|
||||
strcmp(acc_method, "rlogin") == 0 ? rlogin :
|
||||
strcmp(acc_method, "tn3270") == 0 ? tn3270 : telnet;
|
||||
|
||||
+ /* don't accept command line args to telnet */
|
||||
+ /* notting@redhat.com, 8-25-99 */
|
||||
+ for (; *host && *host =='-' ; host ++) {
|
||||
+ *host = '\0';
|
||||
+ }
|
||||
+
|
||||
/*
|
||||
* Modified to allow for odd chars in a username only if exists.
|
||||
* 05-28-94 Lynx 2-3-1 Garrett Arch Blythe
|
||||
@@ -0,0 +1,11 @@
|
||||
--- lynx2-8-6/samples/lynx.lss.pix 2006-09-19 02:28:28.000000000 +0200
|
||||
+++ lynx2-8-6/samples/lynx.lss 2006-11-16 17:23:21.000000000 +0100
|
||||
@@ -34,7 +34,7 @@
|
||||
sup: bold: yellow
|
||||
sub: dim: gray
|
||||
li: normal: magenta
|
||||
-code: normal: cyan
|
||||
+code: normal: white
|
||||
cite: normal: cyan
|
||||
|
||||
table: normal: brightcyan
|
||||
@@ -0,0 +1,33 @@
|
||||
--- lynx2-8-7/userdefs.h.orig 2009-06-07 02:30:35.000000000 +0200
|
||||
+++ lynx2-8-7/userdefs.h 2010-01-03 14:41:42.000000000 +0100
|
||||
@@ -115,8 +115,8 @@
|
||||
* Mappings in these global and personal files override any SUFFIX
|
||||
* definitions in lynx.cfg and built-in defaults from src/HTInit.c.
|
||||
*/
|
||||
-#define GLOBAL_EXTENSION_MAP "Lynx_Dir:mime.types"
|
||||
-#define PERSONAL_EXTENSION_MAP "mime.types"
|
||||
+#define GLOBAL_EXTENSION_MAP "/etc/mime.types"
|
||||
+#define PERSONAL_EXTENSION_MAP ".mime.types"
|
||||
|
||||
/**************************
|
||||
* The MAILCAP file allows you to map file MIME types to
|
||||
@@ -125,7 +125,7 @@
|
||||
* Mappings in these global and personal files override any VIEWER
|
||||
* definitions in lynx.cfg and built-in defaults from src/HTInit.c.
|
||||
*/
|
||||
-#define GLOBAL_MAILCAP "Lynx_Dir:mailcap"
|
||||
+#define GLOBAL_MAILCAP "/etc/mailcap"
|
||||
#define PERSONAL_MAILCAP ".mailcap"
|
||||
|
||||
/**************************
|
||||
--- lynx2-8-7/lynx.cfg.orig 2009-06-24 01:53:58.000000000 +0200
|
||||
+++ lynx2-8-7/lynx.cfg 2010-01-03 14:41:42.000000000 +0100
|
||||
@@ -12,7 +12,7 @@
|
||||
# Definition pairs are of the form VARIABLE:DEFINITION
|
||||
# NO spaces are allowed between the pair items.
|
||||
#
|
||||
-# If you do not have write access to /usr/local/lib you may change
|
||||
+# If you do not have write access to /usr/bin you may change
|
||||
# the default location of this file in the userdefs.h file and recompile,
|
||||
# or specify its location on the command line with the "-cfg"
|
||||
# command line option.
|
||||
@@ -0,0 +1,43 @@
|
||||
--- lynx2-8-7/src/LYMain.c.orig 2009-07-06 01:52:33.000000000 +0200
|
||||
+++ lynx2-8-7/src/LYMain.c 2010-01-03 14:58:31.000000000 +0100
|
||||
@@ -967,6 +967,7 @@
|
||||
struct stat dir_info;
|
||||
char filename[LY_MAXPATH];
|
||||
BOOL LYGetStdinArgs = FALSE;
|
||||
+ struct stat st;
|
||||
|
||||
#ifdef _WINDOWS
|
||||
WSADATA WSAData;
|
||||
@@ -1209,6 +1210,21 @@
|
||||
#endif
|
||||
LYTildeExpand(&lynx_temp_space, TRUE);
|
||||
|
||||
+
|
||||
+ if (stat(lynx_temp_space, &st) < 0) {
|
||||
+ if (errno = ENOENT) {
|
||||
+ printf("Creating dir %s\n", lynx_temp_space);
|
||||
+ mkdir(lynx_temp_space, 0700);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (stat(lynx_temp_space, &st) < 0) {
|
||||
+ if (errno = ENOENT) {
|
||||
+ printf("Can't create %s, let's try /tmp/\n", lynx_temp_space);
|
||||
+ lynx_temp_space = "/tmp/";
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
if ((cp = strstr(lynx_temp_space, "$USER")) != NULL) {
|
||||
char *cp1;
|
||||
|
||||
--- lynx2-8-7/userdefs.h.orig 2010-01-03 14:58:31.000000000 +0100
|
||||
+++ lynx2-8-7/userdefs.h 2010-01-03 14:58:31.000000000 +0100
|
||||
@@ -354,7 +354,7 @@
|
||||
* the "TMPDIR" (unix), or "TEMP" or "TMP" (Windows,DOS,OS/2)
|
||||
* variable.
|
||||
*/
|
||||
-#define TEMP_SPACE "/tmp/"
|
||||
+#define TEMP_SPACE "~/tmp/"
|
||||
|
||||
/********************************
|
||||
* Comment this line out to disable code that implements command logging
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>lynx</Name>
|
||||
<Homepage>http://lynx.isc.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPL</License>
|
||||
<PartOf>network.web</PartOf>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Lynx is the text web browser.</Summary>
|
||||
<Description>This is the top level page for the Lynx software distribution site hosted by the Internet Software Consortium.</Description>
|
||||
<Archive sha1sum="65bbf95627c88723bbb5880155e5fe01c2753d0c" type="tarbz2">http://lynx.isc.org/lynx2.8.8/lynx2.8.8.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>ncurses-devel</Dependency>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch</Patch>
|
||||
<Patch level="1">lynx2-8-6-fix-ugly-color.patch</Patch>
|
||||
<Patch level="1">lynx2-8-7-adapt-to-modern-file-localizations.patch</Patch>
|
||||
<Patch level="1">lynx2-8-7-tmp_dir.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>lynx</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>openssl</Dependency>
|
||||
<Dependency>gettext</Dependency>
|
||||
</RuntimeDependencies>
|
||||
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-29</Date>
|
||||
<Version>2.8.8</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-03-09</Date>
|
||||
<Version>2.8.7</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-07-26</Date>
|
||||
<Version>2.8.7</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>Lynx</Name>
|
||||
<Summary xml:lang="en">Lynx is the text web browser.</Summary>
|
||||
<Summary xml:lang="pl">Przeglądarka WWW z interfejsem tekstowym</Summary>
|
||||
<Description xml:lang="en">This is the top level page for the Lynx software distribution site hosted by the Internet Software Consortium.</Description>
|
||||
<Description xml:lang="pl">Lynx – przeglądarka internetowa pracująca w trybie tekstowym.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user