Scite version 1.79 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.79

      View the most recent changes for the scite port at: scite.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for scite.
      The raw portfile for scite 1.79 is located here:
      http://scite.darwinports.com/dports/editors/scite/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/scite


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      The scite Portfile 53514 2009-07-07 11:01:03Z nox macports.org $

      PortSystem 1.0

      Name: scite
      Version: 1.79
      Category: editors
      Platform: darwin
      Maintainers: nox openmaintainer
      Description: SciTE is a SCIntilla based Text Editor.

      Long Description: Originally built to demonstrate Scintilla, it has grown to be a generally useful editor with facilities for building and running programs. It is best used for jobs with simple configurations.

      Homepage: http://scintilla.sourceforge.net/SciTE.html
      Master Sites: sourceforge:scintilla
      distname ${name}[strsed ${version} {g/\.//}]
      extract.suffix .tgz

      depends_build port:pkgconfig
      depends_lib port:gtk2

      Checksums: md5 02a0d68f0c33c01c9a2c9d69c295acea sha1 43f343b75785b077b6a93b5be8f5fc7544a1a005 rmd160 e36f0e394d1afea007840ea1bb4fc660b0a59f1b

      worksrcdir ${name}/gtk

      Patch Files: patch-scintilla-gtk-makefile.diff patch-scite-gtk-makefile.diff

      post-patch {
      reinplace -E "s/#ifdef (PLAT_MACOSX|__APPLE__)/#if PLAT_MACOSX/" ${workpath}/scintilla/include/Platform.h ${workpath}/scintilla/src/Editor.cxx
      }

      use_configure no

      build.args prefix=${prefix} GTK2=yes

      use_parallel_build yes

      pre-build {
      if {[variant_isset universal]} {
      set lipo_args {}

      foreach {arch} {i386 ppc} {
      system "make -C ${workpath}/scintilla/gtk GTK2=yes UNIVERSAL_CFLAGS=\"-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ${arch}\""

      file mkdir ${workpath}/scintilla/bin/${arch}
      move ${workpath}/scintilla/bin/scintilla.a ${workpath}/scintilla/bin/${arch}/scintilla.a

      system "make -C ${workpath}/scintilla/gtk clean"

      lappend lipo_args -arch ${arch} ${workpath}/scintilla/bin/${arch}/scintilla.a
      }

      system "lipo -create [join ${lipo_args}] -output ${workpath}/scintilla/bin/scintilla.a"
      } else {
      system "make -C ${workpath}/scintilla/gtk GTK2=yes"
      }
      }

      destroot.destdir prefix=${destroot}${prefix}

      post-destroot {
      xinstall -m 444 ${worksrcpath}/../doc/scite.1 ${destroot}${prefix}/share/man/man1
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 644 -W ${workpath}/scite License.txt README ${destroot}${docdir}
      }

      Variant: universal {
      post-patch {
      reinplace -E "/^CXXBASEFLAGS/s|\$| \$(UNIVERSAL_CFLAGS)|" ${workpath}/scintilla/gtk/makefile
      reinplace -E "/^CXXBASEFLAGS/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/makefile
      }

      build.args-append "UNIVERSAL_LDFLAGS=\"${configure.universal_ldflags}\""
      }

      livecheck.distname SciTE

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/scite
      % sudo port install scite
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching scite
      ---> Verifying checksum for scite
      ---> Extracting scite
      ---> Configuring scite
      ---> Building scite with target all
      ---> Staging scite into destroot
      ---> Installing scite
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using scite with these commands:
      %  man scite
      % apropos scite
      % which scite
      % locate scite

     Where to find more information:

    Darwin Ports



    Lightbox this page.