descriptionvarious I.V. D modules
ownerketmar@ketmar.no-ip.org
last changeSun, 17 Sep 2023 06:20:50 +0000 (17 06:20 +0000)
content tags
add:
README
WARNING! this is the mirror of Fossil repository at
https://ketmar.no-ip.org/fossil/ivd/

WARNING! the policy of "being compatible with Vanilla D" is dropped.

vanilla D (and dmd as its reference compiler) is going to be more and
more broken. stupid compiler refucktoring, dropping useful features...
i see it as a complete disaster.

thus, i did a hard fork of dmd, and will not "vanilize" any modules in
IV anymore.

go get Aliced today if you want to use IV!


how to get Aliced
=================
it is probably not that easy, but doable. you will need vanilla dmd 2.076
(other versions aren't tested, and versions starting from 2.078 are outright
broken).

then do this to get Aliced source code:
mkdir aliced
cd aliced
git clone git://repo.or.cz/ivdmd.git dmd
cd dmd
git checkout k8
cd ..
git clone git://repo.or.cz/ivdruntime.git druntime
cd druntime
git checkout k8
cd ..
git clone git://repo.or.cz/ivdphobos.git phobos
cd phobos
git checkout k8
cd ..
git clone git://repo.or.cz/ivdtools.git tools
cd tools
git checkout k8
cd ..


to build aliced:
cd aliced
cd dmd
HOST_DMD=/path/to/your/dmd076/dmd make -f posix.mak
cd ..
cd druntime
make -f posix.mak DMD=../dmd/src/dmd
cd ..
cd phobos
make -f posix.mak DMD=../dmd/src/dmd
cd ..


to install aliced, execute the following shell script from aliced/ directory
(note that you either have to be root, or have rights to create directories in /opt/):

============================================
#!/bin/sh
DMD_INSTALL_PATH=/opt/dmd
ARCH=32

aliced_dir=`pwd`
cd "$aliced_dir"
aliced_dir=`pwd`

if [ -f phobos/generated/linux/release/${ARCH}/libphobos2.a ]; then
  phorel="release"
  echo "MSG: RELEASE Phobos found!"
elif [ -f phobos/generated/linux/debug/${ARCH}/libphobos2.a ]; then
  phorel="debug"
  echo "MSG: DEBUG Phobos found!"
else
  echo "wtf?! where is Phobos?!"
  exit 1
fi

mkdir $DMD_INSTALL_PATH 2>/dev/null

echo "copying dmd..."
mkdir -p $DMD_INSTALL_PATH/bin
cp dmd/generated/linux/release/32/dmd $DMD_INSTALL_PATH/bin

echo "copying runtime..."
cd "$aliced_dir/druntime"
mkdir -p $DMD_INSTALL_PATH/include/d2
cp -r import/* $DMD_INSTALL_PATH/include/d2
cd src
cp -ar gc $DMD_INSTALL_PATH/include/d2

echo "copying phobos..."
cd "$aliced_dir/phobos"
mkdir -p $DMD_INSTALL_PATH/lib
cp -va generated/linux/$phorel/${ARCH}/libphobos2.a $DMD_INSTALL_PATH/lib
rm $DMD_INSTALL_PATH/lib/*.o 2>/dev/null
cp -ar std $DMD_INSTALL_PATH/include/d2
cp -ar etc $DMD_INSTALL_PATH/include/d2
rm -rf $DMD_INSTALL_PATH/include/d2/std/experimental 2>/dev/null

( cat <<EOT
[Environment]
; the special name %@P% is replaced with the path to this file.
DFLAGS=-defaultlib=libphobos2.a -I%@P%/../include/d2 -L-L%@P%/../lib -L--no-warn-search-mismatch -L--export-dynamic -L--demangle=dlang
EOT
) >$DMD_INSTALL_PATH/bin/dmd.conf

echo "compiling rdmd..."
cd "$aliced_dir/tools"
$DMD_INSTALL_PATH/bin/dmd -conf=$DMD_INSTALL_PATH/bin/dmd.conf -O -release -of$DMD_INSTALL_PATH/bin/rdmd rdmd.d rpkgman.d -L-s -wi
rm $DMD_INSTALL_PATH/bin/*.o 2>/dev/null

strip -s $DMD_INSTALL_PATH/bin/* 2>/dev/null

cd "$aliced_dir"
============================================


now you should have a fully functional Aliced compiler (still named dmd for historical reasons).
if you can't figure out what to change in case the script is not working, or what to do next,
Aliced is probably not for you. go get vanilla dmd.

and no, dub is not supported, and never will be.


ok, some last words. to use IV with rdmd, clone IV like this:

  mkdir /opt/dlibs
  git clone git://repo.or.cz/iv.d.git /opt/dlibs/iv

and add "-I/opt/dlibs" to 'dmd.conf' creation part in Aliced install script.
it is advisable to add "-J/opt/dlibs/iv" too.

note that it is IMPORTANT to clone IV in the way that it lands in iv/ directory,
and to -I a directory of one level upper than iv/.

also, it is VERY convenient to clone Adam D. Ruppe's ARSD repo too (i'm using it alot):

  git clone https://github.com/adamdruppe/arsd.git /opt/dlibs/arsd

there is nothing to add to 'dmd.conf' at this stage (only /opt/dlibs is required, and we
already added it.)
shortlog
2023-09-17 ketmarsome updatesmaster
2022-11-27 ketmarflexlay2: respect maximum box size
2022-11-22 ketmarsq3: force "trusted_schema"
2022-10-15 ketmartextlayouter: added method to get marked text
2022-08-11 ketmarsaxy: fixed bug with "&quot;" parsing
2022-07-16 ketmartextlayouter: added simple and incomplete text selectio...
2022-03-25 ketmarstrex: added `detectUrl()`
2022-03-25 ketmaregeditor: some highlighting fixes
2022-03-25 ketmarsrex: added URL of the original C library
2022-01-16 ketmaregtui: added "M-U" undo keybind
2022-01-13 ketmareditor: another undo fix
2022-01-13 ketmareditor: before making text changes, move cursor to...
2022-01-06 ketmaregedit: do not save cursor movement in undo -- this...
2021-12-15 ketmariv.vfs: zip creator can use my dlzma instead of relying...
2021-12-04 ketmarremoved some `pure` attr from utf8 decoder (and egedit...
2021-12-04 ketmardynstring: added `byUniChar()` iterator
...
heads
7 months ago master
6 years ago tmp00