books/diveintopython3: Re: Is ports/books useful?

2013-06-19 Thread Stuart Henderson
Ooops, I forgot to answer this one earlier - this is OK with me,
can anyone give me an OK to import it please?

On 2013/05/31 22:03, Juan Francisco Cantero Hurtado wrote:
> On Fri, May 31, 2013 at 02:44:16PM +0100, Stuart Henderson wrote:
> > 
> > It might be useful to consolidate the installed files into a single
> > directory (/usr/local/share/books?) .. If it wasn't for the extra deps
> > they would pull in, I'd go as far as suggesting adding .desktop files
> > for them.
> > 
> > Specifically talking of Dive into Python, there is now diveintopython3,
> > free OK if someone will write a port for it ;)
> 
> At your service. New port of Dive Into Python 3 (html and pdf).
> 
> -- 
> Juan Francisco Cantero Hurtado http://juanfra.info


For ease of reference, the tgz is at 
http://cache.gmane.org//gmane/os/openbsd/ports/62082-001.bin



Re: books/diveintopython3: Re: Is ports/books useful?

2013-06-19 Thread Paul Irofti
On Wed, Jun 19, 2013 at 08:17:47AM +0100, Stuart Henderson wrote:
> Ooops, I forgot to answer this one earlier - this is OK with me,
> can anyone give me an OK to import it please?

Go ahead please!

> 
> On 2013/05/31 22:03, Juan Francisco Cantero Hurtado wrote:
> > On Fri, May 31, 2013 at 02:44:16PM +0100, Stuart Henderson wrote:
> > > 
> > > It might be useful to consolidate the installed files into a single
> > > directory (/usr/local/share/books?) .. If it wasn't for the extra deps
> > > they would pull in, I'd go as far as suggesting adding .desktop files
> > > for them.
> > > 
> > > Specifically talking of Dive into Python, there is now diveintopython3,
> > > free OK if someone will write a port for it ;)
> > 
> > At your service. New port of Dive Into Python 3 (html and pdf).
> > 
> > -- 
> > Juan Francisco Cantero Hurtado http://juanfra.info
> 
> 
> For ease of reference, the tgz is at 
> http://cache.gmane.org//gmane/os/openbsd/ports/62082-001.bin
> 



No man page for the cadubi portcadubi port

2013-06-19 Thread mradot
I recently downloaded the cadubi port. It is a nice program but it didnt 
come with a man page, however debian GNU/linux has a man page for it. So I 
included a slightly edited version of the man page that comes with the 
debian cadubi package. I hope you will add it to the port. :)

It does not strictly say anywhere what lincense the man page for cadubi is 
under but since cadubi itself uses the same license as perl, I'm guessing 
the man page uses the same license as perl..\" created by Abel Daniel for the Debian Gnu/Linux version, but may be used by
 others.
.TH "cadubi" "1" "1.1b1-4" "Abel Daniel" "User commands"
.SH "NAME"
cadubi \- Creative ASCII Drawing Utility By Ian
.SH "DESCRIPTION"
cadubi is an application written in Perl that allows you to draw text\-based
images that are viewable on typical UNIX\-based consoles. Usually the 
applications
that emulate these consoles support various text modes, such as background and
foreground colors, bold, and inverse. This text art, commonly called 
"ASCII art", is used in various places such as online BBSes, email and 
login prompts.
.SH "OPTIONS"
.TP
.B \-h \-\-help
display some documentation
.TP
.BI \-m \-\-mute
turn off beeping
.TP
.BI "\-s ["W "] ["H ]
.TP
.BI "\-\-size ["W "] ["H ]
sets the size of the console for use with cadubi, where W is number of columns 
and H is number of rows.
.TP
.B \-v \-\-version
show cadubi's version
.SH "CONFIGURING"
Beeping and command line options can be also set in /usr/bin/cadubi.
.SH "KEYBOARD"
.TP
.B i j k l
Move the cursor around. Holding down shift and typing these keys will move the
ursor five spaces instead of one.
.TP
.B space
Paint the current pen on the screen.
.TP
.B return/enter
Move the cursor down one line and all the way to the left of the console.
.TP
.BI "delete " "or " "backspace " "or "`
Delete the character before the cursor.
.TP
.B p
Prompt for a pen character
.TP
.B f
Prompt for foreground color (see section colors).
.TP
.B b
Prompt for background color (see section colors).
.TP
.B g
Toggle bold mode.
.TP
.B v
Toggle inverse mode.
.TP
.B shift-w
Toggle blink (highly annoying).
.TP
.B t
Enter text mode. This allows you to type like as if you were using a normal 
text editor, and all the characters drawn onscreen will use the same mode 
as the pen
.
Pressing Esc will exit text mode.
.TP
.B control-w
Refresh the entire screen by redrawing each character.
.TP
.B control-r
Open a file.
.TP
.B control-o
Save the file.
.TP
.B control-h
Show the quick help screen.
.TP
.B control-x
Exit cadubi.
.SH "USING"
Cadubi has a 'pen' which describes the current mode. Properties of the pen are
the painting character, foreground color, background color, bold, inverse, and
blink. Whenever you paint or use the text mode, the characters drawn on the
screen will have the properties of the pen. The current mode of the pen is 
shown at the bottom of the console and is what will be drawn on screen 
when you paint.
.
Typically, foreground text colors are the same as background colors, unless
the text is bold. If the text is bold, foreground colors are usually lighter 
than
the background color, making text easier to read when the text has the same
foreground and background color. Refer to the Quick Help (control-'h') to see
what the colors look like on your console.

Text mode is an extremely useful feature. Once in the text mode you can type 
as if you were using a normal text editor, and all the characters drawn 
onscreen will use the same mode as the pen. To enter text mode, 
press the 't' key. To exit, press escape.

When cadubi reads a file, it will only read as much that will fit in the
workspace (the area of the console minus the bottom row [status bar]). To gain 
more workspace, see the '-s' operator in section "options".

Cadubi optimizes its output files to display properly and take up as little 
space as possible. All cadubi output can be viewed with the 'cat' utility.

.SH "COLORS"
The color codes are case-insensitive.
The following color codes can be chosen as fore- or background colors:
.IP
0 or N \- Normal (standard text)
.IP
1 or W \- White
.IP
2 or R \- Red
.IP
3 or G \- Green
.IP
4 or Y \- Yellow
.IP
5 or B \- Blue
.IP
6 or M \- Magenta
.IP
7 or C \- Cyan
.IP
8 or K \- Black
.SH "WARNING"
Cadubi uses escape sequences for things like color. These may differ from 
system to system. This means that the file generated by cadubi may 
trash your console when viewed with for example cat. 
It is generally safe to use the files on the
same type of console as they were generated on.
.SH "AUTHORS"
Cadubi was created and is currently being maintained by Ian Langworth. Please
send all questions, comments, hate mail and bug reports to cadubi@logicallemon.
com
.SH "SEE ALSO"
The "Keyboard and Console HOWTO" and the "Text Terminal HOWTO" from the 
Linuxdoc project (www.linuxdoc.org). Both are available in a Debian GNU/Linux
system by installing the doc-linux-text package at
.B /usr/share/doc/HOWTO/en-txt/Keyboard-and-Console

fix hs-postgresql-libpq after kerberos update

2013-06-19 Thread Dawe
Hi,

with the new kerberos and libpq this update to the patch is needed to use
hs-postgresql-libpq in ghci. Bump the dependent hs-postgresql-simple.
Tested on amd64.


Index: hs-postgresql-libpq/Makefile
===
RCS file: /cvs/ports/databases/hs-postgresql-libpq/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- hs-postgresql-libpq/Makefile11 Mar 2013 02:52:05 -  1.4
+++ hs-postgresql-libpq/Makefile19 Jun 2013 12:30:32 -
@@ -3,6 +3,7 @@
 COMMENT =  low-level binding to libpq
 
 DISTNAME = postgresql-libpq-0.8.2.2
+REVISION = 0
 CATEGORIES =   databases
 
 HOMEPAGE = https://github.com/lpsmith/postgresql-libpq
Index: hs-postgresql-libpq/patches/patch-postgresql-libpq_cabal
===
RCS file: 
/cvs/ports/databases/hs-postgresql-libpq/patches/patch-postgresql-libpq_cabal,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-postgresql-libpq_cabal
--- hs-postgresql-libpq/patches/patch-postgresql-libpq_cabal11 Jan 2013 
20:19:49 -  1.1.1.1
+++ hs-postgresql-libpq/patches/patch-postgresql-libpq_cabal19 Jun 2013 
12:30:32 -
@@ -2,14 +2,15 @@ $OpenBSD: patch-postgresql-libpq_cabal,v
 
 Unbreak when used within GHCi
 
 postgresql-libpq.cabal.origThu Jan  3 20:18:57 2013
-+++ postgresql-libpq.cabal Thu Jan  3 20:21:37 2013
-@@ -27,7 +27,7 @@ Library
+--- postgresql-libpq.cabal.origWed Jan 30 09:12:28 2013
 postgresql-libpq.cabal Wed Jun 19 14:14:23 2013
+@@ -27,7 +27,8 @@ Library
   , bytestring
  
GHC-Options:   -Wall
 -  Extra-Libraries:   pq
-+  Extra-Libraries:   pq crypto ssl com_err
++  Extra-Libraries:   pq crypto ssl com_err asn1 hx509 krb5 wind roken pthread
++ heimbase
-- Other-modules:
Build-tools:   hsc2hs
  
Index: hs-postgresql-simple/Makefile
===
RCS file: /cvs/ports/databases/hs-postgresql-simple/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- hs-postgresql-simple/Makefile   11 Jun 2013 17:54:40 -  1.8
+++ hs-postgresql-simple/Makefile   19 Jun 2013 12:30:32 -
@@ -3,6 +3,7 @@
 COMMENT =  mid-level PostgreSQL client library
 
 DISTNAME = postgresql-simple-0.3.3.1
+REVISION = 0
 CATEGORIES =   databases
 
 HOMEPAGE = https://github.com/lpsmith/postgresql-simple



Re: UPDATE: LLVM 3.3

2013-06-19 Thread Brad Smith
On Tue, Jun 18, 2013 at 10:03:20PM -0400, Brad Smith wrote:
> Here is an update to LLVM 3.3.
> 
> Comments? OK?

Here is an updated diff with the r600 backend enabled.


Index: Makefile
===
RCS file: /home/cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.62
diff -u -p -r1.62 Makefile
--- Makefile2 May 2013 15:41:57 -   1.62
+++ Makefile19 Jun 2013 01:59:15 -
@@ -7,14 +7,13 @@ ONLY_FOR_ARCHS = ${LLVM_ARCHS}
 
 COMMENT =  modular, fast C/C++/ObjC compiler, static analyzer and tools
 
-LLVM_V =   3.2
+LLVM_V =   3.3
 DISTNAME = llvm-${LLVM_V}.src
 PKGNAME =  llvm-${LLVM_V}
-REVISION = 3
 CATEGORIES =   devel
 MASTER_SITES = http://llvm.org/releases/${LLVM_V}/
 
-DISTFILES =${DISTNAME}${EXTRACT_SUFX} clang-${LLVM_V}.src${EXTRACT_SUFX}
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} cfe-${LLVM_V}.src${EXTRACT_SUFX}
 
 SHARED_LIBS =  clang   0.0 # 3.2
 
@@ -24,7 +23,7 @@ HOMEPAGE =http://www.llvm.org/
 # BSD
 PERMIT_PACKAGE_CDROM = Yes
 
-WANTLIB =  c m pthread stdc++
+WANTLIB =  c m pthread stdc++ z
 
 WRKDIST =  ${WRKDIR}/llvm-${LLVM_V}.src
 
@@ -54,10 +53,10 @@ CONFIGURE_ARGS +=   -DCMAKE_EXE_LINKER_FLA
 .endif
 
 CLANG_INCLUDE_PATH =   lib/clang/${LLVM_V}/include
-SUBST_VARS +=  CLANG_INCLUDE_PATH
+SUBST_VARS +=  CLANG_INCLUDE_PATH LLVM_V
 
 post-extract:
-   @mv ${WRKDIR}/clang-${LLVM_V}.src ${WRKDIST}/tools/clang
+   @mv ${WRKDIR}/cfe-${LLVM_V}.src ${WRKDIST}/tools/clang
 
 pre-configure:
@${SUBST_CMD} ${WRKSRC}/tools/clang/tools/scan-build/scan-build
Index: distinfo
===
RCS file: /home/cvs/ports/devel/llvm/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- distinfo23 Dec 2012 20:49:29 -  1.11
+++ distinfo16 Jun 2013 23:26:38 -
@@ -1,4 +1,4 @@
-SHA256 (clang-3.2.src.tar.gz) = KqrwP3wPaxb+l+zIEkfcK/LUvsdiCnfMdGcLfgf/Vlg=
-SHA256 (llvm-3.2.src.tar.gz) = ElCQxNJnQPHV6YOEd8kx7X2a1w1Zm6Jl9G86QssGY0M=
-SIZE (clang-3.2.src.tar.gz) = 8805311
-SIZE (llvm-3.2.src.tar.gz) = 12275252
+SHA256 (cfe-3.3.src.tar.gz) = sbVd5Ks6V9PgMxqD4ChGEBkcd9kk40RkmNkRPQjfuZY=
+SHA256 (llvm-3.3.src.tar.gz) = aHZrHnDQWiXi9QLpl6PLOTcYejKWWVz24Jd9XNZydXg=
+SIZE (cfe-3.3.src.tar.gz) = 9425539
+SIZE (llvm-3.3.src.tar.gz) = 13602421
Index: patches/patch-CMakeLists_txt
===
RCS file: /home/cvs/ports/devel/llvm/patches/patch-CMakeLists_txt,v
retrieving revision 1.2
diff -u -p -r1.2 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt23 Dec 2012 20:49:29 -  1.2
+++ patches/patch-CMakeLists_txt19 Jun 2013 03:00:51 -
@@ -2,14 +2,22 @@ $OpenBSD: patch-CMakeLists_txt,v 1.2 201
 
 Don't confuse scripts who want the version with appended 'svn' goo.
 
 CMakeLists.txt.origFri Sep 28 19:35:20 2012
-+++ CMakeLists.txt Mon Dec 10 19:22:46 2012
+--- CMakeLists.txt.origMon May  6 12:23:07 2013
 CMakeLists.txt Tue Jun 18 23:00:44 2013
 @@ -13,7 +13,7 @@ set(CMAKE_MODULE_PATH
  set(LLVM_VERSION_MAJOR 3)
- set(LLVM_VERSION_MINOR 2)
+ set(LLVM_VERSION_MINOR 3)
  
 -set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}svn")
 +set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
  
  option(LLVM_USE_FOLDERS "Enable solution folders in Visual Studio. Disable 
for Express versions." ON)
  if ( LLVM_USE_FOLDERS )
+@@ -83,6 +83,7 @@ set(LLVM_ALL_TARGETS
+   MSP430
+   NVPTX
+   PowerPC
++  R600
+   Sparc
+   SystemZ
+   X86
Index: patches/patch-cmake_modules_LLVMConfig_cmake_in
===
RCS file: 
/home/cvs/ports/devel/llvm/patches/patch-cmake_modules_LLVMConfig_cmake_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-cmake_modules_LLVMConfig_cmake_in
--- patches/patch-cmake_modules_LLVMConfig_cmake_in 2 May 2013 15:41:57 
-   1.1
+++ patches/patch-cmake_modules_LLVMConfig_cmake_in 8 May 2013 10:21:28 
-
@@ -3,9 +3,9 @@ $OpenBSD: patch-cmake_modules_LLVMConfig
 make it find include file in /usr/local/share/llvm/cmake
 bug reported: http://www.llvm.org/bugs/show_bug.cgi?id=15899
 
 cmake/modules/LLVMConfig.cmake.in.orig Sat Jul  7 05:12:28 2012
-+++ cmake/modules/LLVMConfig.cmake.in  Thu May  2 07:38:57 2013
-@@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
+--- cmake/modules/LLVMConfig.cmake.in.orig Tue Apr 23 04:28:39 2013
 cmake/modules/LLVMConfig.cmake.in  Wed May  8 06:14:30 2013
+@@ -39,6 +39,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
  set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
  set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
  
Index: patches/patch-lib_CodeGen_StackProtector_cpp
===
RCS file: 
/home/cvs/ports/devel/llvm/patc

Re: new: node-typescript-0.9.0

2013-06-19 Thread Aaron
On Tue, Jun 18, 2013 at 6:46 PM, James Turner  wrote:
> Attached is a new port for the TypeScript language. I know there has
> been some debate on importing npm packages so you node people please
> chime in.

As long as they modules have few ( read 'no' ) dependencies I am ok.  It's when
they have piles of dependencies that force multiple versions of a given module
that we end up with a problem.

OK abieber@

>
> Tested on amd64.
>
> Information for inst:node-typescript-0.9.0
>
> Comment:
> typed superset of JavaScript
>
> Description:
> TypeScript is a language for application-scale JavaScript development.
> It is a typed superset of JavaScript that compiles to clean, simple
> JavaScript code which runs on any browser, in Node.js, or in any other
> ES3-compatible environment. TypeScript offers classes, modules, and
> interfaces to help you build robust components.
>
> Maintainer: James Turner 
>
> WWW: http://www.typescriptlang.org/
>
> --
> James Turner



Re: NEW: lang/racket 5.3.5

2013-06-19 Thread James Turner
On Wed, Jun 19, 2013 at 04:36:31AM +0200, Juan Francisco Cantero Hurtado wrote:
> This version was released yesterday. It's just Racket 5.3.4 + the source
> code of the new book "Realm of Racket".[1]
> 
> I've been using Racket 5.3.4 for the last two months so is well tested.
> Now is the best moment for import Racket to the CVS because the Racket
> developers will break the big tarball in a bunch of little packages in
> the next days. [2]
> 
> Please test and commit the port.
> 
> PS: I often write in a self-invented dialect similar to english, so
> please check also my english in DESCR and README :) .
> 
> 
> 1. http://permalink.gmane.org/gmane.comp.lang.racket.user/18414
> 2. http://permalink.gmane.org/gmane.comp.lang.racket.user/18420
> 
> -- 
> Juan Francisco Cantero Hurtado http://juanfra.info

Built and installed fine on amd64 although 'make fake' does take awhile.
I don't think USE_GROFF is needed, included manpages looked fine without
it. DESCR and README both read fine to me. Maybe the below in README
could be tweaked?

- Some examples of ffi-lib doesn't work
to
- Some examples of ffi-lib don't work
or
- Some examples of ffi-lib do not work

-- 
James Turner