delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/20/16:45:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,TW_JX,TW_XV
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 20 Dec 2011 16:45:19 -0500
Message-ID: <CAGJwi9jCZYom=T_tMmeMU9mv3yrEtneugn7bSM6uPk2sPSG7DA@mail.gmail.com>
Subject: elinks for cygwin from source
From: Fenn <fenn AT alum DOT wpi DOT edu>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Folks - I just wanted to share this with the others on the list.

I am a huge user of elinks web browser.  I like to use it to convert
html documents to (mostly) formatted plain ascii documents

elinks is now dropped from the cygwin repos so I put together this
little bash script in the spirit of gentoo to build from source.

It pulls the source code tarball with wget then builds and installes

It also patches the "-rdynamic" flag to gcc in the generated
Makefile.config to "--rdynamic"
(I don't know if this is a type-o or an old feature no-longer supported by gcc).

Hope this helps someone . . .

#!/bin/bash


###
### http://elinks.or.cz/download.html
###
### http://elinks.or.cz/download/elinks-current-unstable.tar.bz2
###
### http://cygwin.com/ml/cygwin-apps/2003-12/msg00323.html
###   --without-x --enable-leds  --enable-fastmem  --enable-256-colors
###

### $ /usr/bin/links -width 132 -dump http://elinks.or.cz/download.html
###
#
# % git clone http://elinks.cz/elinks.git
# % cd elinks
# % git branch elinks-0.11 origin/elinks-0.11
# % git branch -v
# % git checkout master
# % git checkout elinks-0.11


if [[ -d $HOME/Archive/. ]] ; then
 SRCDIR="$HOME/Archive"
fi

if [[ -d /*src*/. ]] ; then
 SRCDIR="$(/bin/ls -1d /*src*/. | tail -1 )"
fi

if [[ ! -d "$SRCDIR" ]] ; then
 mkdir -p $HOME/Archive
 SRCDIR="$HOME/Archive"
fi

if [[ ! -d "$SRCDIR" ]] ; then
 echo "$0 : 5679917741134199 : ERROR SRCDIR $SRCDIR not found"
 exit
fi

cd "$SRCDIR"
mkdir elinks
if [[ ! -d "elinks" ]] ; then
 echo "$0 : 8589378762966375 : ERROR Dir $SRCDIR/elinks not found"
 exit
fi

cd elinks
/bin/rm -rf elinks-current-unstable.tar.bz2
wget 'http://elinks.or.cz/download/elinks-current-unstable.tar.bz2'


### LC_ALL=en TERM=vt100 /usr/local/bin/elinks 'http://www.google.com/'

mkdir -p elinks-current-unstable.tar.bz2_d
cd       elinks-current-unstable.tar.bz2_d

tar -jxvf ../elinks-current-unstable.tar.bz2

export CC=/usr/bin/gcc-4
export MAKE=/usr/bin/make

cd elinks*/.
./configure --prefix=/usr/local --without-x --enable-leds
--enable-fastmem  --enable-256-colors

cat   ./Makefile.config | sed 's/[-]*rdynamic/--rdynamic/' >
./Makefile.config.new
cp -p ./Makefile.config     ./Makefile.config.old
cp -p ./Makefile.config.new ./Makefile.config

make all
make install

type -pa elinks

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019